<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_BucketListBlueprintShareOptions"
      mc:Ignorable="d"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}">

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

    <Page.Resources>
        <ResourceDictionary>

            <local:TileMenuDataItem x:Key="A_MenuDataItem_EditTitle"
                                      Heading="{local:Loc BucketListBlueprint.IDS_ShareOptions_TileTitle_EditTitle}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/EditTitle.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_PublishBucketList"
                                      Heading="{local:Loc BucketListBlueprint.IDS_ShareOptions_TileTitle_PublishBucketList}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Publish.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_Retry"
                                      Heading="{local:Loc BucketListBlueprint.IDS_ShareOptions_TileTitle_Retry}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/Retry.png"/>
            <local:TileMenuDataItem x:Key="A_MenuDataItem_AdjustTimeLimit"
                                      Heading="{local:Loc BucketListBlueprint.IDS_ShareOptions_TileTitle_AdjustTimeLimit}"
                                      Icon="/ForzaUI;component/Textures/Anthem/Icons/TiledMenus/AdjustTimeLimit.png"/>

        </ResourceDictionary>
    </Page.Resources>

    <Grid>
        <!-- Background Blur -->
        <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_Quit}" />
        </ContentControl>

        <Grid x:Name="LayoutRoot">
            <Border Style="{StaticResource A_Style_Border_ScenePadding_Opus}">
                <StackPanel Orientation="Vertical" Margin="-7,-23,0,0" VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Decorator Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}"
                               HorizontalAlignment="Left">
                        <ContentControl Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                            Content="{local:Loc ScreenTitles.IDS_BucketListBlueprintShareOptions}"
                            local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/Blueprint.png"
                            HorizontalAlignment="Left" />
                    </Decorator>
                    <DockPanel>
                        <Decorator x:Name="PART_MenuContent" Panel.ZIndex="10"
                                   HorizontalAlignment="Left"
                                   Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}"
                                   Margin="0,0,88,0"
                                   DockPanel.Dock="Left">
                            <local:AutoSizeCanvas x:Name="PART_SCOPE_Home">
                                <local:FZButton x:Name="PART_Button_EditTitle"
                                    DataContext="{StaticResource A_MenuDataItem_EditTitle}"
                                    local:TileMenuNavigationManager.GridX="0"
                                    local:TileMenuNavigationManager.GridY="0"
                                    Style="{StaticResource A_Style_Button_Tile_4x2}" 
                                    local:UIPageTransitionManager.TransitionIndex="0"/>

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

                                <local:FZButton x:Name="PART_Button_PublishBucketList"
                                    DataContext="{StaticResource A_MenuDataItem_PublishBucketList}"
                                    local:TileMenuNavigationManager.GridX="0"
                                    local:TileMenuNavigationManager.GridY="2"
                                    Style="{StaticResource A_Style_Button_Tile_4x2}" 
                                    local:UIPageTransitionManager.TransitionIndex="2"/>

                                <local:FZButton x:Name="PART_Button_AdjustTimeLimit"
                                    DataContext="{StaticResource A_MenuDataItem_AdjustTimeLimit}"
                                    local:TileMenuNavigationManager.GridX="4"
                                    local:TileMenuNavigationManager.GridY="2"
                                    Style="{StaticResource A_Style_Button_Tile_2x2}" 
                                    local:UIPageTransitionManager.TransitionIndex="3"/>
                            </local:AutoSizeCanvas>
                        </Decorator>
                        
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_2}">
                            <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                                <local:FZMaterial x:Name="SoftDropShadow" Margin="-18" Style="{StaticResource A_Style_FZMaterial_ShadowBase_ForSubgraph}">
                                    <local:FZMaterial.Preset>
                                        <local:FZMaterialPresetRoundtangle Softness="20" AlphaMode="MultiplyInvColorOnly" Unlit="True" />
                                    </local:FZMaterial.Preset>
                                </local:FZMaterial>
                                <Viewbox Stretch="Uniform" StretchDirection="DownOnly" Height="555">
                                    <Control Style="{StaticResource A_Style_Control_BucketListFlyer}" 
                                             DataContext="{Binding BucketListSetup}"/>
                                </Viewbox>
                            </Grid>
                        </Decorator>
                    </DockPanel>
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
</Page>
