<Page x:Class="MultiLayout.PgMenu"
      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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
      mc:Ignorable="d" 
      d:DesignHeight="768" d:DesignWidth="1388" 
      Background="White"
    
	Title="Page_Menu">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MultiLayout;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <SolidColorBrush x:Key="Color_menu" Color="#C00083D7"/>
            <Style TargetType="TextBlock" x:Key="TextStyle_menuContent">
                <Setter Property="FontWeight" Value="Bold"/>
                <Setter Property="FontFamily" Value="YouYuan"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="Background" Value="{StaticResource Color_menu}"/>
                <Setter Property="Padding" Value="10"/>
            </Style>
            
            <Style TargetType="Button" x:Key="ButtonStyle_menu" BasedOn="{StaticResource ButtonStyle_empty}" >
                <Setter Property="Background" Value="{StaticResource Color_menu}"/>
                <Setter Property="Width" Value="225"/>
                <Setter Property="Height" Value="140"/>
                <Setter Property="Margin" Value="5"/>
                <Style.Resources>
                    <Style TargetType="TextBlock" BasedOn="{StaticResource TextStyle_menuContent}"/>
                </Style.Resources>
            </Style>

        </ResourceDictionary>
    </Page.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" >
            <Button Style="{StaticResource Styles.TitleBar.BackButton}" Click="btnBackClick" >
                <iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
            </Button>
        </StackPanel>
        <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" >
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>

                    <RowDefinition />
                    <RowDefinition Height="100" />
                </Grid.RowDefinitions>
                <ItemsControl x:Name="itemsControl0" Grid.Column="1">
                    <ItemsControl.Resources>
                        <Style TargetType="Button" BasedOn="{StaticResource Styles.PgMenu.ItemButton}"/>
                    </ItemsControl.Resources>
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel Orientation="Vertical"/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <Button Background="{Binding Brush}" Click="Button_Click" >
                                <TextBlock Text="{Binding Title}" />
                            </Button>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </Grid>
        </ScrollViewer>
    </Grid>
</Page>
