<UserControl x:Class="Sched.CustomSubwindows.ScheduleForPanel"
             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:Sched.CustomSubwindows"
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="300">
    <UserControl.Resources>
        <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>
    </UserControl.Resources>
    <DockPanel>
        <GroupBox Name="GB_Assignment" DockPanel.Dock="Top" BorderBrush="Black" Margin="0" Padding="5"  BorderThickness="0">
            <GroupBox.Header>
                <Label Content="{DynamicResource Str_Assignment}"/>
            </GroupBox.Header>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" Text="{DynamicResource Str_Semester}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox Name="CB_Semester" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{DynamicResource Str_StudentGroup}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox Name="CB_StudentGroup" Grid.Row="1" Grid.Column="1" />
                <Button Name="BTN_ShowTimetable" Grid.Row="2" Grid.Column="1" Margin="0" Content="{DynamicResource AS_BTN_ShowTimetable}"/>
            </Grid>
        </GroupBox>
        <GroupBox Name="GB_Range" DockPanel.Dock="Top"  BorderBrush="Black" Margin="0" Padding="5"  BorderThickness="0">
            <GroupBox.Header>
                <Label Content="{DynamicResource AS_ScheduleFor}"/>
            </GroupBox.Header>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" Text="{DynamicResource AS_Days}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBlock Grid.Row="0" Grid.Column="1" Text="{DynamicResource AS_From}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox  Grid.Row="0" Grid.Column="2" Name="CB_DayOfWeek_Start"/>
                <TextBlock Grid.Row="1" Grid.Column="1" Text="{DynamicResource AS_To}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox  Grid.Row="1" Grid.Column="2" Name="CB_DayOfWeek_End"/>

                <TextBlock Grid.Row="2" Grid.Column="0" Text="{DynamicResource Str_Hours}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBlock Grid.Row="2" Grid.Column="1" Text="{DynamicResource AS_From}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBox Grid.Row="2" Grid.Column="2" Name="TB_Period_Start"/>
                <TextBlock Grid.Row="3" Grid.Column="1" Text="{DynamicResource AS_To}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBox Grid.Row="3" Grid.Column="2" Name="TB_Period_End"/>

                <TextBlock Grid.Row="4" Grid.Column="0"  Grid.ColumnSpan="2" Text="{DynamicResource AS_PreferedLessonType}" ToolTip="{DynamicResource AS_PreferedLessonType_Tooltip}" Style ="{StaticResource Style_TextBlock}" Padding="0,5"/>
                <ComboBox  Grid.Row="4" Grid.Column="2" Name="CB_LessonTypePreference"/>
                
                <Button Name="BTN_Schedule" Grid.Row="5" Grid.ColumnSpan="3" Content="{DynamicResource AS_BTN_Schedule}" Margin="10"/>
            </Grid>
        </GroupBox>
    </DockPanel>
</UserControl>
