<UserControl x:Class="Sched.CustomSubwindows.AssignmentPanel"
             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="600" d:DesignWidth="360">
    <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="20,0,10,0"/>
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="MinWidth" Value="24"/>
        </Style>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="MaxDropDownHeight"  Value="180"/>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <!--Assignment-->
        <GroupBox Name="GB_Assignment" Grid.Row="0" BorderBrush="Black" Margin="0" Padding="5"  BorderThickness="0">
            <GroupBox.Header>
                <Label Content="{DynamicResource Str_Assignment}"/>
            </GroupBox.Header>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" MinWidth="120"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <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_Category}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox Name="CB_Category" Grid.Row="1" Grid.Column="1" />
                <ComboBox Name="CB_ChosenEntity" Grid.Row="2" Grid.Column="1"/>
            </Grid>
        </GroupBox>
        <!--Lesson-->
        <GroupBox Name="GB_Lesson" Grid.Row="1" BorderBrush="Black" Margin="0" Padding="5" BorderThickness="0">
            <GroupBox.Header>
                <Label Content="{DynamicResource Str_Lesson}"/>
            </GroupBox.Header>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" MinWidth="120"/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="{DynamicResource Str_Course}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox Name="CB_Course" Grid.Row="0" Grid.Column="1"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{DynamicResource Str_LessonType}" Style ="{StaticResource Style_TextBlock}"/>
                <ComboBox Name="CB_LessonType" Grid.Row="1" Grid.Column="1"/>
                <TextBlock Grid.Row="2" Grid.Column="0" Text="{DynamicResource Str_Hours}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBox Name="TB_Hours" Grid.Row="2" Grid.Column="1"/>
                <TextBlock Grid.Row="3" Grid.Column="0" Text="{DynamicResource LessonPanel_Periodicity}" ToolTip="{DynamicResource LessonPanel_Periodicity_Tooltip}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBox Name="TB_Periodicity" Grid.Row="3" Grid.Column="1"/>
                <TextBlock Grid.Row="4" Grid.Column="0" Text="{DynamicResource Str_StartDate}" Style ="{StaticResource Style_TextBlock}"/>
                <DatePicker Name="DP_StartDate" Grid.Row="4" Grid.Column="1" Background="White"/>
                <TextBlock Grid.Row="5" Grid.Column="0" Text="{DynamicResource Str_Note}" Style ="{StaticResource Style_TextBlock}"/>
                <TextBox Name="TB_Note" Grid.Row="5" Grid.Column="1"/>
                <local:MultientityPanel x:Name="ME_Panel" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"/>
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>
