<Window x:Class="Gebrauchtbootsverkauf.BootsAngebot"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Angebote" Height="600" Width="500">    
        <StackPanel>
        <DataGrid Name="offerGrid" AutoGenerateColumns="False" IsReadOnly="True" Width="500" Height="300">

            <!-- Datenfelder für das Angebotgrid anlegen -->

            <DataGrid.Columns>
                <DataGridTextColumn Header="Name" Binding="{Binding Path=Modell}"></DataGridTextColumn>
                <DataGridTextColumn Header="Sitze" Binding="{Binding Path=Sitze}"></DataGridTextColumn>
                <DataGridTextColumn Header="Preis" Binding="{Binding Path=Preis}"></DataGridTextColumn>
            </DataGrid.Columns>

            <!-- Handler für Detailinfos nach Doppelklick ins Grid -->

            <DataGrid.Resources>
                <Style TargetType="DataGridRow">
                    <EventSetter Event="MouseDoubleClick" Handler="dblClick"/>
                </Style>
            </DataGrid.Resources>
        </DataGrid>
        <Button Height="30" Width="200" Name="Anzeigen" VerticalAlignment="Top" Click="Anz_Click">Anzeigen</Button>

    </StackPanel>
</Window>
