<Page xmlns:local="clr-namespace:ForzaUI;assembly="
      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_BucketListBlueprintTypeSelect"
      mc:Ignorable="d"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}">

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

    <Page.Resources>
        <ResourceDictionary>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_SpeedCamera"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_SpeedCamera}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_SpeedCamera}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/SpeedCamera.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_SkillScore"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_SkillScore}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_SkillScore}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/SkillScore.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_Waypoint"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_Waypoint}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_Waypoint}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/Waypoint.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_DangerSign"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_DangerSign}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_DangerSign}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/DangerSign.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_SkillDrive"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_SkillDrive}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_SkillDrive}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/SkillDrive.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_SkillMastery"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_SkillMastery}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_SkillMastery}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/SkillMastery.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_DriftZone"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_DriftZone}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_DriftZone}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/DriftZone.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_DamageControl"
                                      Heading="{local:Loc BucketListBlueprint.IDS_TileTitle_DamageControl}"
                                      Description="{local:Loc BucketListBlueprint.IDS_TileDesc_DamageControl}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Bucketlist/DamageControl.png"/>
        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <Control Template="{StaticResource A_ControlTemplate_Blueprint_Background}"/>

        <!-- Bars -->
        <local:PlayerBarControl x:Name="TopBar" Style="{StaticResource A_Style_PlayerBarControl}" />
        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="DefaultHelpPanel" 
                            Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}"
                            local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Select}"
                            local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Back}" />
        </ContentControl>

        <Grid x:Name="LayoutRoot">
            <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}">
                <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center" >
                    <Decorator Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                               Margin="0,0,0,0" HorizontalAlignment="Left">
                        <ContentControl Content="{local:Loc ScreenTitles.IDS_BucketListBlueprintType}"
                                        local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/Blueprint.png"
                                        Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}" />
                    </Decorator>
                    <StackPanel Orientation="Horizontal">
                        <Decorator x:Name="PART_MenuContent" Panel.ZIndex="10">
                            <local:AutoSizeCanvas x:Name="PART_SCOPE_Home">
                                <local:FZButton x:Name="PART_Button_SpeedCamera"
                                        DataContext="{StaticResource A_MenuDataItem_SpeedCamera}"
                                        local:TileMenuNavigationManager.GridX="0"
                                        local:TileMenuNavigationManager.GridY="0"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="1"/>

                                <local:FZButton x:Name="PART_Button_SkillScore"
                                        DataContext="{StaticResource A_MenuDataItem_SkillScore}"
                                        local:TileMenuNavigationManager.GridX="2"
                                        local:TileMenuNavigationManager.GridY="0"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="2"/>

                                <local:FZButton x:Name="PART_Button_Waypoint"
                                        DataContext="{StaticResource A_MenuDataItem_Waypoint}"
                                        local:TileMenuNavigationManager.GridX="4" 
                                        local:TileMenuNavigationManager.GridY="0"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="3"/>

                                <local:FZButton x:Name="PART_Button_DangerSign"
                                        DataContext="{StaticResource A_MenuDataItem_DangerSign}"
                                        local:TileMenuNavigationManager.GridX="6" 
                                        local:TileMenuNavigationManager.GridY="0"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="4"/>

                                <local:FZButton x:Name="PART_Button_SkillDrive"
                                        DataContext="{StaticResource A_MenuDataItem_SkillDrive}"
                                        local:TileMenuNavigationManager.GridX="0" 
                                        local:TileMenuNavigationManager.GridY="2"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="5"/>

                                <local:FZButton x:Name="PART_Button_SkillMastery"
                                        DataContext="{StaticResource A_MenuDataItem_SkillMastery}"
                                        local:TileMenuNavigationManager.GridX="2" 
                                        local:TileMenuNavigationManager.GridY="2"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="6"/>

                                <local:FZButton x:Name="PART_Button_DriftZone"
                                        DataContext="{StaticResource A_MenuDataItem_DriftZone}"
                                        local:TileMenuNavigationManager.GridX="4" 
                                        local:TileMenuNavigationManager.GridY="2"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="7"/>

                                <local:FZButton x:Name="PART_Button_DamageControl"
                                        DataContext="{StaticResource A_MenuDataItem_DamageControl}"
                                        local:TileMenuNavigationManager.GridX="6" 
                                        local:TileMenuNavigationManager.GridY="2"
                                        Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                        local:UIPageTransitionManager.TransitionIndex="8"/>
                            </local:AutoSizeCanvas>
                        </Decorator>
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}">
                            <ContentControl Style="{StaticResource A_Style_DescriptionPanel}" 
                                    Height="556" Width="426" Margin="10,0,0,0"
                                    DataContext="{Binding TileMenuNavigationManager.SelectedTile}"
                                    Content="{Binding DataContext.Description}" />
                        </Decorator>
                    </StackPanel>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
</Page>