<Page
    xmlns:local="clr-namespace:ForzaUI"
    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:System="clr-namespace:System;assembly=mscorlib"
    x:Class="ForzaUI.A_LiveryModeSelect"
    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>
        <Control Template="{StaticResource A_ControlTemplate_PatternedBackground}"/>
        <local:PlayerBarControl Style="{StaticResource A_Style_PlayerBarControl}"
                        x:Name="TopBar" />
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="PART_DefaultHelpPanel"
                    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Select}"
                    local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Back}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>

        <Grid x:Name="PART_LayoutRoot" 
              Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <Grid Style="{StaticResource A_Style_FrameworkElement_TiledMenuTransition_0}">
                <ContentControl Content="{local:Loc Livery.IDS_MenuTitle_LiveryMode}"
                                        Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock_Tile_TextMenu}"/>

                <Grid x:Name="PART_MenuContent">
                    <Grid Style="{StaticResource A_Style_Grid_Tiled_TextMenu}"
                                  x:Name="PART_SCOPE_Home" Style="{StaticResource A_Style_Grid_Tiled_TextMenu}">
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <local:FZButton x:Name="PART_Button_PaintCar"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            TileMenuNavigationManager.InitialSelection="True"
                                            Grid.Row="0">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading ="{local:Loc Livery.IDS_TileTitle_PaintCar}"
                                                            Description="{local:Loc Livery.IDS_TileText_PaintCar}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_ApplyDecals"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="1"
                                            PropertySetter.Property="{x:Null}">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_CreateDesign}"
                                                            Description="{local:Loc Livery.IDS_TileText_CreateDesign}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_FindDesign"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="2">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_FindDesigns}"
                                                            Description="{local:Loc Livery.IDS_TileText_FindDesigns}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_MyDesigns"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="3">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_MyDesigns}"
                                                            Description="{local:Loc Livery.IDS_TileText_MyDesigns}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_LoadVinylGroup"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="4">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_LoadGroup}"
                                                            Description="{local:Loc Livery.IDS_TileText_LoadGroup}" />
                            </local:FZButton.DataContext>
                        </local:FZButton>

                        <local:FZButton x:Name="PART_Button_CreateVinylGroup"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="5">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_CreateGroup}"
                                                            Description="{local:Loc Livery.IDS_TileText_CreateGroup}"/>
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_FollowedPlayers"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="6">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc TiledMenus.IDS_TileText_FollowedPlayers}" />
                            </local:FZButton.DataContext>
                        </local:FZButton>
                        <local:FZButton x:Name="PART_Button_PaintOtherCars"
                                            Style="{StaticResource A_Style_FZButton_Tiled_TextMenu}"
                                            Grid.Row="7">
                            <local:FZButton.DataContext>
                                <local:TileMenuDataItem Heading="{local:Loc Livery.IDS_TileTitle_PaintOtherCars}" />
                            </local:FZButton.DataContext>
                        </local:FZButton>
                    </Grid>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</Page>
