<UserControl x:Class="StammGenerator.Views.SchachtListView"
             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>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <DataGrid Grid.Row="0" ItemsSource="{Binding Schaechte}" AutoGenerateColumns="False" IsReadOnly="True" SelectionMode="Single" SelectedItem="{Binding SelectedSchacht}">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Schachtnummer" Binding="{Binding Objektbezeichnung}" />
                <!--<DataGridTextColumn Header="Rechtswert" Binding="{Binding RechtsWert}" />-->
                <!--<DataGridTextColumn Header="Hochwert" Binding="{Binding HochWert}" />-->
                <!--<DataGridTextColumn Header="Sohlhöhe" Binding="{Binding SohlHoehe}" />-->
                <!--<DataGridTextColumn Header="Deckelhöhe" Binding="{Binding DeckelHoehe}" />-->
                <DataGridTextColumn Header="Entwässerung" Binding="{Binding Entwaesserung}" />
                <DataGridTextColumn Header="SchachtTyp" Binding="{Binding SchachtType}" />
            </DataGrid.Columns>
        </DataGrid>
        <StackPanel Grid.Row="1">
            <Button Content="Schacht hinzufügen" Command="{Binding AddSchachtCommand}" />
            <Button Content="Schacht Editieren"  Command="{Binding EditSchachtCommand}" />
            <Button Content="Schacht Löschen"    Command="{Binding DeleteSchachtCommand}" />
            <!--<Button Content="Schächte aus CSV Laden" Command="{Binding ImportSchachtCommand}" />-->
        </StackPanel>
    </Grid>
</UserControl>
