<UserControl x:Class="Sched.CustomSubwindows.MultientityPanel"
             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="200" 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="20,0,10,0"/>
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Width" Value="24"/>
        </Style>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="MaxDropDownHeight"  Value="180"/>
        </Style>
    </UserControl.Resources>
    <Grid>
        <ScrollViewer MinHeight="150" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Name="SC">
            <Grid Width="{Binding ElementName=SC, Path=ActualWidth}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="{DynamicResource Str_Teacher}" Style ="{StaticResource Style_TextBlock}"/>
                <Grid Name="G_Teacher" Grid.Row="0" Grid.Column="1">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <ComboBox Name="CB_Teacher" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch"/>
                    <Button Name="BTN_Teacher" Content="+" Grid.Row="0" Grid.Column="1" Background="LawnGreen"/>
                </Grid>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="{DynamicResource Str_Room}" Style ="{StaticResource Style_TextBlock}"/>
                <Grid Name="G_Room" Grid.Row="1" Grid.Column="1">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <ComboBox Name="CB_Room" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch"/>
                    <Button Name="BTN_Room" Content="+" Grid.Row="0" Grid.Column="1" Background="LawnGreen"/>
                </Grid>
                <TextBlock Grid.Row="2" Grid.Column="0" Text="{DynamicResource Str_StudentGroup}" Style ="{StaticResource Style_TextBlock}"/>
                <Grid Name="G_StudentGroup" Grid.Row="2" Grid.Column="1">
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <ComboBox Name="CB_StudentGroup" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch"/>
                    <Button Name="BTN_StudentGroup" Content="+" Grid.Row="0" Grid.Column="1" Background="LawnGreen"/>
                </Grid>
            </Grid>
        </ScrollViewer>
    </Grid>
</UserControl>
