<Window x:Class="Sched.AutoscheduleWindow"
        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:Sched"
        xmlns:customCtrl="clr-namespace:Sched.CustomControls"
        xmlns:customClasses="clr-namespace:Sched.CustomClasses"
        xmlns:customSubwindows="clr-namespace:Sched.CustomSubwindows"
        mc:Ignorable="d"
        Title="{DynamicResource AS_WindowTitle}" Height="700" Width="1400">
    <Window.Resources>
        <Style TargetType="Border" x:Key="Style_Border">
            <Setter Property="BorderBrush" Value="#DDDDDD"/>
            <Setter Property="BorderThickness" Value="10"/>
            <Setter Property="Margin" Value="10"/>
        </Style>
        <Style TargetType="{x:Type Label}">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="FontSize" Value="32"/>
        </Style>
        <Style TargetType="TextBlock" x:Key="Style_TextBlock">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Margin" Value="10,0"/>
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="MinWidth" Value="24"/>
            <Setter Property="Margin" Value="20,2"/>
        </Style>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="MaxDropDownHeight"  Value="180"/>
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="MinWidth"  Value="72"/>
        </Style>
    </Window.Resources>
    <DockPanel>
        <!-- SettingPanel -->
        <Border DockPanel.Dock="Left" Style="{StaticResource Style_Border}">
            <Grid Width="300">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <customSubwindows:ScheduleForPanel x:Name="ScheduleFor_Panel" Grid.Row="0" />
            </Grid>
        </Border>

        <!-- (CourseChecklist + Lesson)Panel -->
        <Border DockPanel.Dock="Top"  Style="{StaticResource Style_Border}" Height="300">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Label Content="{DynamicResource Str_Courses}" Grid.Row="0" Grid.Column="0"/>
                <Label Content="{DynamicResource AS_Lessons}" Grid.Row="0" Grid.Column="1"/>
                <Button Name="BTN_CourseCheck"  Margin="10" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right"  Content="{DynamicResource Menu_Tools_TimetableCourseCheck}"/>
                
                <ScrollViewer  VerticalScrollBarVisibility="Visible" Grid.Row="1" Grid.Column="0" Margin="10">
                    <DataGrid Name="DG_Courses" HeadersVisibility="Column"/>
                </ScrollViewer>
                <customSubwindows:DatagridPanel x:Name="Panel_Lessons" Grid.Row="1" Grid.Column="1"/>
            </Grid>
        </Border>

        <!-- (Lesson + Teacher/Room/StudentGroup)Panel -->
        <Border DockPanel.Dock="Bottom"  Style="{StaticResource Style_Border}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Label Content="{DynamicResource Str_StudentGroup}" Grid.Row="0" Grid.Column="0"/>
                <Label Content="{DynamicResource Str_Teacher}" Grid.Row="0" Grid.Column="1"/>
                <Label Content="{DynamicResource Str_Room}" Grid.Row="0" Grid.Column="2"/>
                <customSubwindows:DatagridPanel x:Name="Panel_LessonStudentGroup" Grid.Row="1" Grid.Column="0"/>
                <customSubwindows:DatagridPanel x:Name="Panel_LessonTeacher" Grid.Row="1" Grid.Column="1"/>
                <customSubwindows:DatagridPanel x:Name="Panel_LessonRoom" Grid.Row="1" Grid.Column="2"/>
            </Grid>
        </Border>
    </DockPanel>
</Window>
