<UserControl x:Class="StammGenerator.Views.AuftraggeberListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:StammGenerator.Views"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <StackPanel>
            <DataGrid ItemsSource="{Binding Auftraggeber}" AutoGenerateColumns="False" SelectedItem="{Binding SelectedAuftraggeber}" IsReadOnly="False">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Name" Binding="{Binding Name}" />
                    <DataGridTextColumn Header="Ansprechpartner" Binding="{Binding Ansprechpartner}" />
                    <DataGridTextColumn Header="Strasse" Binding="{Binding Strasse}" />
                    <DataGridTextColumn Header="PLZ" Binding="{Binding Postleitzahl}" />
                    <DataGridTextColumn Header="Ort" Binding="{Binding Ort}" />
                </DataGrid.Columns>
            </DataGrid>
            <Button Content="Hinzufügen" Command="{Binding AddCommand}" />
            <Button Content="Editieren" Command="{Binding EditCommand}" />
            
        </StackPanel>

    </Grid>
</UserControl>
