<Window x:Class="Sched.MainWindow"
        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="Schedule Editor" Height="700" Width="1400" Background="White">
    <Window.Resources>
        <Style TargetType="Menu" x:Key="Style_Menu">
            <Setter Property="Background" Value="#DDDDDD"/>
            <Setter Property="HorizontalAlignment" Value="Stretch"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Margin" Value="0,0"/>
            <Setter Property="Height" Value="24"/>
            <Setter Property="Width" Value="Auto"/>
        </Style>
        <Style TargetType="MenuItem" x:Key="Style_MenuItem">
            <Setter Property="Height" Value="24"/>
        </Style>
        <Style TargetType="MenuItem" x:Key="Style_SubMenuItem">
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="Height" Value="24"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Menu Style ="{StaticResource Style_Menu}" Grid.Row="0">
            <MenuItem Header="{DynamicResource Menu_File}"  Style ="{StaticResource Style_MenuItem}">
                <MenuItem Name="Menu_File_Print" Header="{DynamicResource Menu_File_Print}"   Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_File_About"  Header="{DynamicResource Menu_File_About}"   Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_File_Exit"  Header="{DynamicResource Menu_File_Exit}"   Style ="{StaticResource Style_SubMenuItem}"/>
            </MenuItem>
            <MenuItem Header="{DynamicResource Menu_View}" Style ="{StaticResource Style_MenuItem}">
                <MenuItem Name="Menu_View_Database" Header="{DynamicResource Menu_View_Database}"   Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_View_Autogenerate" Header="{DynamicResource Menu_View_Autogenerate}"   Style ="{StaticResource Style_SubMenuItem}"/>
            </MenuItem>
            <MenuItem Header="{DynamicResource Menu_Tools}" Style ="{StaticResource Style_MenuItem}">
                <MenuItem Name="Menu_Tools_TimetableCourseCheck" Header="{DynamicResource Menu_Tools_TimetableCourseCheck}"   Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_Tools_TimetableFullCollisionCheck" Header="{DynamicResource Menu_Tools_TimetableFullCollisionCheck}"   Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_Tools_Language" Header="{DynamicResource Menu_Tools_Language}"   Style ="{StaticResource Style_SubMenuItem}"/>
            </MenuItem>
            <!--<MenuItem Header="{DynamicResource Menu_Help}" Style ="{StaticResource Style_MenuItem}">
                <MenuItem Name="Menu_Help_ViewHelp" Header="{DynamicResource Menu_Help_ViewHelp}" Style ="{StaticResource Style_SubMenuItem}"/>
                <MenuItem Name="Menu_Help_About" Header="{DynamicResource Menu_Help_About}" Style ="{StaticResource Style_SubMenuItem}"/>
            </MenuItem>-->
        </Menu>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="360"/>
                <ColumnDefinition MinWidth="600"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition MinHeight="300"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <!-- Timetable (Main)-->
            <Border BorderThickness="10" BorderBrush="#DDDDDD" Grid.Row="0" Grid.Column="1" Margin="10">
                <ScrollViewer x:Name="TimetablePanel"
                        HorizontalScrollBarVisibility="Auto" 
                        VerticalScrollBarVisibility="Visible" 
                        Background="White" 
                        HorizontalContentAlignment="Stretch">
                    <customCtrl:Timetable x:Name="MainTimetable" HorizontalAlignment="Stretch"/>
                </ScrollViewer>
            </Border>

            <!-- AssignmentPanel-->
            <Border BorderThickness="10" BorderBrush="#DDDDDD" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Margin="10">
                <customSubwindows:AssignmentPanel  x:Name="AssignmentPanel"/>
            </Border>

            <!-- Collision Table-->
            <Border BorderThickness="10" BorderBrush="#DDDDDD" Grid.Row="1" Grid.Column="1"  Margin="10" Padding="10">
                <customSubwindows:CollisionPanel   x:Name="CollisionPanel" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
            </Border>
        </Grid>
    </Grid>
</Window>
