<Window x:Class="StammGenerator.Views.AuftraggeberShow"
        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:StammGenerator.Views"
        mc:Ignorable="d"
        Title="AuftraggeberShow" Height="450" Width="800">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="300" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>

        <Label Grid.Column="0" Grid.Row="0" Margin="10" Content="Name" />
        <Label Grid.Column="0" Grid.Row="1" Margin="10" Content="Ansprechpartner" />
        <Label Grid.Column="0" Grid.Row="2" Margin="10" Content="Strasse" />
        <Label Grid.Column="0" Grid.Row="3" Margin="10" Content="Postleitzahl" />
        <Label Grid.Column="0" Grid.Row="4" Margin="10" Content="Ort" />
        <Label Grid.Column="0" Grid.Row="5" Margin="10" Content="Telefonnummer" />

        <TextBox Grid.Column="1" Grid.Row="0" Margin="10" Text="{Binding Name}" />
        <TextBox Grid.Column="1" Grid.Row="1" Margin="10" Text="{Binding Ansprechpartner}" />
        <TextBox Grid.Column="1" Grid.Row="2" Margin="10" Text="{Binding Strasse}" />
        <TextBox Grid.Column="1" Grid.Row="3" Margin="10" Text="{Binding Postleitzahl}" />
        <TextBox Grid.Column="1" Grid.Row="4" Margin="10" Text="{Binding Ort}" />
        <TextBox Grid.Column="1" Grid.Row="5" Margin="10" Text="{Binding Telefonnummer}" />

        <StackPanel Grid.Column="3" Grid.RowSpan="6">
            <Label Content="Oder wähle aus der Liste aus" />
            <ComboBox ItemsSource="{Binding VerfuegbareAuftraggeber}" SelectedItem="{Binding SelectedAuftraggber}" />
            <Button Margin="10" Content="Übernehmen" Command="{Binding ApplyCommand}" />
        </StackPanel>
    </Grid>
</Window>
