Files
2024-12-29 17:57:58 +01:00

50 lines
2.1 KiB
XML

<Window x:Class="Client.Views.WindowAddAndEdit"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Client.Views"
mc:Ignorable="d"
Title="WindowAddAndEdit" Height="450" Width="800">
<Grid>
<!-- Definiere die Grid-Zeilen -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Titel -->
<StackPanel Orientation="Horizontal" Margin="10" Grid.Row="0">
<Label Content="Titel:" Width="100" />
<TextBox Width="300" Text="{Binding Titel}" />
</StackPanel>
<!-- Zustand -->
<StackPanel Orientation="Horizontal" Margin="10" Grid.Row="1">
<Label Content="Zustand:" Width="100" />
<ComboBox Width="300"
ItemsSource="{Binding Zustaende}"
SelectedItem="{Binding Zustand}" />
</StackPanel>
<!-- Kommentar -->
<StackPanel Orientation="Horizontal" Margin="10" Grid.Row="2">
<Label Content="Kommentar:" Width="100" />
<TextBox Width="300" Text="{Binding Kommentar}" />
</StackPanel>
<!-- Buttons -->
<StackPanel Grid.Row="7" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10">
<Button Content="OK" Width="100" Margin="5" Command="{Binding OkCommand}" />
<Button Content="Abbrechen" Width="100" Margin="5" Command="{Binding .CancelCommand}" />
</StackPanel>
</Grid>
</Window>