<Page xmlns:local="clr-namespace:ForzaUI"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      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"
      x:Class="ForzaUI.A_EventLabMenuTiled"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      local:AttachedTileMenu.TileMenuNavigationManager="{local:TileMenuNavigationManager}">

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_TiledSubMenu}"/>
    </local:UIPageTransitionManager.TransitionManager>

    <Grid x:Name="PART_LayoutRoot">
        <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />
        <!-- Bars -->
        <local:PlayerBarControl x:Name="TopBar" Style="{StaticResource A_Style_PlayerBarControl}" />
        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        x:Name="BottomBar">
            <ControllerButtonPanel x:Name="PART_HelpPanel"
                                 Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <ControllerButtonControl Button="A"
                                               Description="{Loc HelpButtons.IDS_Select}" />
                <ControllerButtonControl Button="B"
                                               Description="{Loc HelpButtons.IDS_Back}" />
            </ControllerButtonPanel>
        </ContentControl>
        <Decorator
            Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
            Width="Auto"
            Height="Auto"
            HorizontalAlignment="Center"
            VerticalAlignment="Center">
            <StackPanel Style="{StaticResource A_Style_FrameworkElement_TiledMenuTransition_0}">
                <ContentControl Content="{local:Loc ScreenTitles.IDS_Eventlab}"
                    Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                    Width="364"
                    Margin="0,0,0,20"
                    HorizontalAlignment="Left"/>

                <Decorator x:Name="PART_MenuContent">
                    <Grid Style="{StaticResource H_Style_Grid_4TileMenu}"
                          x:Name="PART_SCOPE_Home">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        
                        <local:FZButton x:Name="PART_Button_CreateEvent"
                                        Style="{StaticResource H_Style_ImageTile}"
                                        Grid.Column="0"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="0"
                                        Grid.RowSpan="8"
                                        Command="{Binding GoToCreateEventCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                        TileMenuNavigationManager.TextColorScheme="{Static TextColorScheme.Light}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_EventLab_Create}"
                                                        Description="{local:Loc EventBlueprint.IDS_EventLab_Create_Sub}"
                                                        Icon="Textures\Data_Bound\PauseMenu_Images\Eventlab_Create.png" />
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_EventBlueprints"
                                        Style="{StaticResource H_Style_ImageTile}"
                                        TileMenuNavigationManager.InitialSelection="True"
                                        Grid.Column="1"
                                        Grid.ColumnSpan="2"
                                        Grid.Row="0"
                                        Grid.RowSpan="4"
                                        Command="{Binding GoToEventBlueprintsCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_Blueprint_EventBlueprints}"
                                                        Description="{local:Loc EventBlueprint.IDS_Blueprint_EventBlueprints_Sub}"
                                                        Icon="Textures\Data_Bound\PauseMenu_Images\Eventlab_Menu_Tile.png" />
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_MyEvents"
                                        Style="{StaticResource H_Style_ImageTile}"
                                        Grid.Column="3"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="0"
                                        Grid.RowSpan="8"
                                        Command="{Binding GoToMyEventsCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_Blueprint_MyEvents}"
                                                        Description="{local:Loc EventBlueprint.IDS_Blueprint_MyEvents_Sub}"
                                                        Icon="Textures\Data_Bound\PauseMenu_Images\Eventlab_MyEvents.png" />
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_PropPrefabs"
                                        Style="{StaticResource H_Style_MultiLineTextTile}"
                                        Grid.Column="2"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="4"
                                        Grid.RowSpan="2"
                                        Command="{Binding GoToPropPrefabsCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_Blueprint_PropPrefabs}"
                                                        Description="{local:Loc EventBlueprint.IDS_Blueprint_PropPrefabs_Sub}" />
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_FindPropPrefabs"
                                        Style="{StaticResource H_Style_MultiLineTextTile}"
                                        Grid.Column="2"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="6"
                                        Grid.RowSpan="2"
                                        Command="{Binding GoToFindPropPrefabsCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_Blueprint_FindPropPrefabs}"
                                                        Description="{local:Loc EventBlueprint.IDS_Blueprint_FindPropPrefabs_Sub}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_PlayChallenges"
                                        Style="{StaticResource H_Style_MultiLineTextTile}"
                                        Grid.Column="1"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="4"
                                        Grid.RowSpan="4"
                                        Command="{Binding GoToPlayChallengesCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_EventLab_PlayChallenges_Title}"
                                                        Description="{local:Loc EventBlueprint.IDS_EventLab_PlayChallenges_Sub}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <!--<local:FZButton x:Name="PART_Button_MyChallenges"
                                        Style="{StaticResource H_Style_MultiLineTextTile}"
                                        Grid.Column="2"
                                        Grid.ColumnSpan="1"
                                        Grid.Row="4"
                                        Grid.RowSpan="4"
                                        Command="{Binding GoToMyChallengesCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc EventBlueprint.IDS_EventLab_MyChallenges_Title}"
                                                        Description="{local:Loc EventBlueprint.IDS_EventLab_MyChallenges_Sub}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>-->
                    </Grid>
                </Decorator>
            </Grid>
        </Decorator>
    </Grid>
</Page>

