<CreateEventlabMenu xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            x:Class="ForzaUI.A_CreateEventlabMenu"
            Style="{StaticResource A_Style_Page_Generic}"
            DataContext="{Binding RelativeSource={RelativeSource Self}}"
            AttachedTileMenu.TileMenuNavigationManager="{TileMenuNavigationManager}">

    <Page.Resources>
    </Page.Resources>
    
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_TiledSubMenu}" />
    </UIPageTransitionManager.TransitionManager>
    <Grid KeyboardNavigation.DirectionalNavigation="Contained"
          x:Name="PART_LayoutRoot">
        <!--Main Tile Content -->
       <Control Style="{StaticResource A_Style_Control_ScreenBackground}" />
        <!-- Bars -->
        <PlayerBarControl Style="{StaticResource A_Style_PlayerBarControl}"
                        x:Name="TopBar" />
        <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_CreateEventlabMenu}"
                                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}">
                        <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>
                        <FZButton x:Name="PART_Route"
                                  Style="{StaticResource H_Style_ImageTile}"
                                  TileMenuNavigationManager.InitialSelection="True"
                                  Grid.Column="0"
                                  Grid.Row="0"
                                  Grid.RowSpan="4"
                                  Grid.ColumnSpan="3"
                                  Command="{Binding RouteCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <FZButton.DataContext>
                                <TileMenuDataItem Heading="{Loc PauseMenu.IDS_CreateEventlabMenu_TileTitle_Route}"
                                                  Description="{Loc PauseMenu.IDS_CreateEventlabMenu_TileText_Route}"
                                                  Icon="Textures\Data_Bound\PauseMenu_Images\CreateEventlabMenu_Route.png" />
                            </FZButton.DataContext>
                        </FZButton>
                        <FZButton x:Name="PART_Event"
                                  Style="{StaticResource H_Style_ImageTile}"
                                  Grid.Column="0"
                                  Grid.Row="4"
                                  Grid.RowSpan="4"
                                  Grid.ColumnSpan="2" 
                                  Command="{Binding EventCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <FZButton.DataContext>
                                <TileMenuDataItem Heading="{Loc PauseMenu.IDS_CreateEventlabMenu_TileTitle_Event}"
                                                  Description="{Loc PauseMenu.IDS_CreateEventlabMenu_TileText_Event}"
                                                  Icon="Textures\Data_Bound\PauseMenu_Images\CreateEventlabMenu_Event.png" />
                            </FZButton.DataContext>
                        </FZButton>
                        <FZButton x:Name="PART_Challenge"
                                  Style="{StaticResource H_Style_ImageTile}"
                                  Grid.Column="2"
                                  Grid.Row="4"
                                  Grid.RowSpan="4"
                                  Grid.ColumnSpan="1"
                                  Command="{Binding ChallengeCommand, RelativeSource={RelativeSource AncestorType=Page}}">
                            <FZButton.DataContext>
                                <TileMenuDataItem Heading="{Loc PauseMenu.IDS_CreateEventlabMenu_TileTitle_Challenge}"
                                                  Description="{Loc PauseMenu.IDS_CreateEventlabMenu_TileText_Challenge}" />
                            </FZButton.DataContext>
                        </FZButton>
                        <FZButton x:Name="PART_MultiplayerBuilding"
                                  Style="{StaticResource H_Style_ImageTile}"
                                  Grid.Column="3"
                                  Grid.Row="0"
                                  Grid.RowSpan="8"
                                  Grid.ColumnSpan="1"
                                  Command="{Binding MultiplayerBuildingCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                                  TileMenuNavigationManager.TextColorScheme="{Static TextColorScheme.Light}">
                            <FZButton.DataContext>
                                <TileMenuDataItem Heading="{Loc PauseMenu.IDS_CreateEventlabMenu_TileTitle_MultiplayerBuilding}"
                                                  Description="{Loc PauseMenu.IDS_CreateEventlabMenu_TileText_MultiplayerBuilding}"
                                                  Icon="Textures\Data_Bound\PauseMenu_Images\CreateEventlabMenu_MultiplayerBuilding.png" />
                            </FZButton.DataContext>
                        </FZButton>
                    </Grid>
                </Decorator>
            </StackPanel>
        </Decorator>
    </Grid>
</CreateEventlabMenu>
