<mah:MetroWindow
        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:ZKuP"
        xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" x:Class="ZKuP.Family"
        mc:Ignorable="d"
        Title="Werksführung" Height="300" Width="500" WindowStartupLocation="CenterOwner">

    <mah:MetroWindow.Resources>
        <local:ConvertToSlot x:Key="ConvertToSlot"></local:ConvertToSlot>
    </mah:MetroWindow.Resources>
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="1.5*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Text="Gewünschten Tag wählen:" Grid.RowSpan="2" Margin="10" HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <DatePicker local:DatePickerHelper.ShowTodayButton="True" local:DatePickerHelper.ShowTodayButtonContent="Heute" x:Name="dPdate" Grid.RowSpan="2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="30" SelectedDateChanged="dPdate_SelectedDateChanged"/>
        <!--<TextBlock Text="Samstag" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" Height="30"/>
        <TextBlock x:Name="lblDateSat" Text="Date Saturday" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="30" Height="30"/>
-->
        <!--<TextBlock Text="Sonntag" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="10" Height="30"/>
        <TextBlock x:Name="lblDateSun" Text="Date Sunday" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="30" Height="30"/>
-->
        <StackPanel Orientation="Vertical" Grid.RowSpan="2" Grid.Column="0" Margin="0,20,0,0" VerticalAlignment="Center">
            <Button x:Name="btnSatSlot1" Content="Datum wählen" Height="30" Margin="10" IsEnabled="False" Click="btnSatSlot1_Click"/>
            <Button x:Name="btnSatSlot2" Content="Datum wählen" Height="30" Margin="10" IsEnabled="False" Click="btnSatSlot2_Click"/>
            <Button x:Name="btnSatSlot3" Content="Datum wählen" Height="30" Margin="10" IsEnabled="False" Click="btnSatSlot3_Click"/>
        </StackPanel>

        <!--<StackPanel Orientation="Vertical" Grid.Column="1" VerticalAlignment="Center">
            <Button x:Name="btnSunSlot1" Content="Führung 1" Height="30" Margin="10"/>
            <Button x:Name="btnSunSlot2" Content="Führung 2" Height="30" Margin="10"/>
        </StackPanel>-->

        <TextBlock Text="Von Ihnen gebuchte Führungen:" Grid.Column="1" Margin="10" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <DataGrid x:Name="dgOwn" Grid.Column="1" Margin="10,30,10,10" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Datum" Binding="{Binding Date, ConverterCulture=de-DE, StringFormat=\{0:dddd  dd.MM.yy\}}" Width="*">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="{x:Type TextBlock}">
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="HorizontalAlignment" Value="Left"/>
                            <Setter Property="Margin" Value="10,0,10,0"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTextColumn Header="Zeitslot" Binding="{Binding Slot, Converter={StaticResource ConvertToSlot}}" Width="*">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="{x:Type TextBlock}">
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="HorizontalAlignment" Value="Left"/>
                            <Setter Property="Margin" Value="10,0,10,0"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTemplateColumn Width="30">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Button Width="28" Content="3" Height="20" Foreground="Red" FontSize="20" Padding="1" FontFamily="Wingdings 2" ToolTip="Löschen" Click="Button_Click"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>

        <!--<TextBlock Text="Alle gebuchten Führungen:" Grid.Column="1" Grid.Row="1" Margin="10" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
      
        <DataGrid x:Name="dgAll" Grid.Column="1" Grid.Row="1" Margin="10,30,10,10" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Datum" Binding="{Binding Date, ConverterCulture=de-DE, StringFormat=\{0:dd.MM.yy\}}" Width="*">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="{x:Type TextBlock}">
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="HorizontalAlignment" Value="Left"/>
                            <Setter Property="Margin" Value="10,0,10,0"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTextColumn Header="Anz. gebucht" Binding="{Binding Count}" Width="*">
                    <DataGridTextColumn.ElementStyle>
                        <Style TargetType="{x:Type TextBlock}">
                            <Setter Property="VerticalAlignment" Value="Center"/>
                            <Setter Property="HorizontalAlignment" Value="Center"/>
                            <Setter Property="Margin" Value="10,0,10,0"/>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>-->

    </Grid>
</mah:MetroWindow>
