<MapScene DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}"
      mc:Ignorable="d"
      x:Class="ForzaUI.Scenes.Anthem.A_Map"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:ForzaUI;assembly="
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

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

    <Page.Resources>
        <local:UIStoryboard x:Key="A_Storyboard_MapPinOpacity_BlendValueInputChanged">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                           FillBehavior="HoldEnd"
                                           Storyboard.TargetProperty="(local:BlendValue.Blend)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                      Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuarticEase EasingMode="EaseOut" />
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_FadeInInstruction">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                           FillBehavior="HoldEnd"
                                           Storyboard.TargetProperty="(Opacity)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                      Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <QuarticEase EasingMode="EaseOut" />
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <Style x:Key="A_Style_PinContainer"
               TargetType="FrameworkElement">
            <Setter Property="RenderTransform">
                <Setter.Value>
                    <TranslateTransform X="{Binding PinPosX}"
                                        Y="{Binding PinPosY}" />
                </Setter.Value>
            </Setter>
            <Setter Property="local:BlendValue.InputChangedStoryboard" Value="{StaticResource A_Storyboard_MapPinOpacity_BlendValueInputChanged}" />
            <Setter Property="local:BlendValue.Input" Value="{Binding CanShowPin}" />
            <Setter Property="local:BlendValue.BlendFromPreviousOutput" Value="True" />
            <Setter Property="local:BlendValue.ShouldSkipInitialInputChange" Value="False" />
            <Setter Property="Opacity" Value="{Binding (local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
            <Setter Property="Visibility" Value="{Binding CanShowPin, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}" />
        </Style>
        <Style x:Key="A_Style_FZRun_MapFestivalInstruction_HIGHLIGHT"
               TargetType="local:FZRun">
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
            <Setter Property="FontFamily" Value="Horizon_A" />
        </Style>
        <MappingConverter x:Key="A_MappingConverter_MapFestivalInstruction">
            <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_MapFestivalInstruction_HIGHLIGHT}" />
        </MappingConverter>

        <Color x:Key="A_Color_Map_EventsSelectedValue">#FF404040</Color>

        <Style x:Key="A_Style_ControllerButtonControl_MapBackButton" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}" TargetType="local:ControllerButtonControl">
            <Setter Property="Description" Value="{local:Loc HelpButtons.IDS_Resume}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.CampaignRouteSelect}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding EliminatorPhase, FallbackValue=0}" Value="{x:Static local:EliminatorPhase.PreGame}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:MappingConverter x:Key="A_Converter_TrackToViewAccoladesButton_BottomBar" Default="{local:Loc HelpButtons.IDS_ViewAccolades}">
            <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionOne}" Value="{local:Loc HelpButtons.IDS_ViewMissions}" />
            <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}" Value="{local:Loc HelpButtons.IDS_ViewChallenges}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_ControllerButtonControl_MapStartButton" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}" TargetType="local:ControllerButtonControl">
            <Setter Property="Description" Value="{x:Null}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding CanHandleInput}" Value="True">
                    <Setter Property="Description" Value="{Binding ActiveTrack, Converter={StaticResource A_Converter_TrackToViewAccoladesButton_BottomBar}}" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.CampaignRouteSelect}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapEliminator}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapHideSeekPreGame}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapHideSeek}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapLabyrinth}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapSceneCrossTrack}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding ShouldDisplayViewChallengeButton}" Value="False">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_ControllerButtonControl_MapRBButton" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}" TargetType="local:ControllerButtonControl">
            <Style.Triggers>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapHideSeekPreGame}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapHideSeek}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapLabyrinth}">
                    <Setter Property="Visibility" Value="Collapsed" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style TargetType="local:FZMaterial" x:Key="A_Style_FZMaterial_EliminatorTimer">
            <Style.Resources>
                <local:MappingConverter x:Key="A_MappingConverter_Phase_To_Timer_Visiblity" Default="Collapsed">
                    <local:MappingConverterEntry Key="{x:Static local:EliminatorPhase.PreGame}" Value="Visible"/>
                </local:MappingConverter>
            </Style.Resources>
            <Setter Property="Width" Value="290"/>
            <Setter Property="Height" Value="144"/>
            <Setter Property="Visibility" Value="{Binding EliminatorPhase, Converter={StaticResource A_MappingConverter_Phase_To_Timer_Visiblity}, FallbackValue=Collapsed}"/>
            <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/Eliminator/Map/ELIM_TimerHousing.png"/>
        </Style>
        <local:LinearTransformConverter x:Key="A_LinearTransformConverter_EliminatorTimer_MaxBarWidth" Scale="220"/>



        <Color x:Key="A_Color_EliminatorInstructionTextWindow">#BB130551</Color>
        
        <Style x:Key="A_Style_FZMaterial_InstructionBacking" TargetType="{x:Type local:FZMaterial}">
            <Setter Property="Margin" Value="48,10,0,0"/>
            <Setter Property="Color" Value="{StaticResource A_Color_DarkenedBar_Background}"/>
            <Setter Property="Height" Value="{StaticResource A_Double_Size_PlayerBar}" />
            <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding Visibility, RelativeSource={RelativeSource Self}}" Value="{x:Static Visibility.Visible}">
                    <DataTrigger.EnterActions>
                        <BeginStoryboard Storyboard="{StaticResource A_Storyboard_FadeInInstruction}"/>
                    </DataTrigger.EnterActions>
                </DataTrigger>
                <DataTrigger Binding="{Binding Visibility, ElementName=AccoladesBlock}" Value="{x:Static Visibility.Collapsed}">
                    <Setter Property="Margin" Value="48,60,0,0" />
                </DataTrigger>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapEliminator}">
                    <Setter Property="Color" Value="{StaticResource A_Color_EliminatorInstructionTextWindow}"/>
                    <Setter Property="Height" Value="35"/>
                    <Setter Property="Preset" Value="{StaticResource H_Roundtangle_Outer_1px}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_EventCounter" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_Pill}">
            <Setter Property="Visibility" Value="Hidden"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding NumEventsSelected, Converter={StaticResource A_CompareConverter}, ConverterParameter=-1}" Value="1">
                    <Setter Property="Visibility" Value="Visible"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZMaterial_InfoPromptIcon" TargetType="local:FZMaterial">
            <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/HUD/InfoIconSmall.png"/>
            <Setter Property="Margin" Value="5,0,10,0"/>
            <Setter Property="Width" Value="32"/>
            <Setter Property="Height" Value="32"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding SceneEnum}" Value="{x:Static local:SceneEntryEnum.MapEliminator}">
                    <Setter Property="Margin" Value="-14,-8,6,-8"/>
                    <Setter Property="Width" Value="48"/>
                    <Setter Property="Height" Value="48"/>
                    <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Eliminator/Map/ELIM_InfoPromptIcon.png"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZTextBlock_ProgressionText" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_PlayerBar}">
                <Setter Property="TextWrapping" Value="Wrap" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="TextAlignment" Value="Left" />
        </Style>

        <Thickness x:Key="A_Margin_ProgressionText">9,12,9,12</Thickness>

        <Style x:Key="A_Style_MapViewControllerInteractive_DefaultController"
               TargetType="{x:Type local:MapViewControllerInteractive}">
            <Setter Property="MinMapDistance" Value="{Binding MapMinDistance}" /> <!--{local:TrackProperty MapMinDistance}-->
            <Setter Property="MaxMapDistance" Value="{Binding MapMaxDistance}" /> <!--{local:TrackProperty MapMaxDistance}-->
            <Setter Property="MinCursorSpeed" Value="1000" />
            <Setter Property="MaxCursorSpeed" Value="4000" />
            <Setter Property="MinCursorZoom" Value="0" />
            <Setter Property="MaxCursorZoom" Value="1" />
            <Setter Property="ZoomSpeed" Value="3.0" />
            <Setter Property="MouseZoomSpeed" Value="3.0" />
            <Setter Property="InputAccelerationStart" Value="1" />
            <Setter Property="InputAccelerationTime" Value="1" />
            <Setter Property="InputLinearity" Value="2" />
            <Setter Property="MapInteriaSpring" Value="100" />
            <Setter Property="MapInteriaDamping" Value="20" />
            <Setter Property="MapZoomInteriaSpring" Value="300" />
            <Setter Property="MapZoomInteriaDamping" Value="40" />
            <Setter Property="MapDeadArea" Value=".4" />
            <Setter Property="CursorDistance" Value="200" />
            <Setter Property="CursorScaleFactor" Value="0.75" />
            <Setter Property="VisibleAreaDistanceOffset" Value="0" />
            <Setter Property="MapId" Value="{Binding MapId, ElementName=PART_MapCustomRenderElement}" />
        </Style>

        <Style x:Key="A_Style_MapViewControllerInteractive_ExpansionOne"
               BasedOn="{StaticResource A_Style_MapViewControllerInteractive_DefaultController}"
               TargetType="{x:Type local:MapViewControllerInteractive}">
        </Style>

        <Style x:Key="A_Style_MapViewControllerInteractive_ExpansionTwo"
               BasedOn="{StaticResource A_Style_MapViewControllerInteractive_DefaultController}"
               TargetType="{x:Type local:MapViewControllerInteractive}">
        </Style>

        <local:MappingConverter x:Key="A_Converter_TrackToMapViewStyle"
                                Default="{StaticResource A_Style_MapViewControllerInteractive_DefaultController}">
            <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionOne}" Value="{StaticResource A_Style_MapViewControllerInteractive_ExpansionOne}" />
            <local:MappingConverterEntry Key="{x:Static local:XAMLTrack.ExpansionTwo}" Value="{StaticResource A_Style_MapViewControllerInteractive_ExpansionTwo}" />
        </local:MappingConverter>

        <Style x:Key="A_Style_TextBlock_HideSeek_DetailPanel_Base" 
               TargetType="local:FZTextBlock">
            <Setter Property="CapHeight" Value="14" />
            <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        </Style>

        <Style x:Key="A_Style_FZRun_Markup_HideSeek_TitlePanel_HIGHLIGHT" TargetType="local:FZRun">
            <Setter Property="Color"  Value="{StaticResource A_Color_HideSeek_Hider}"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding IsLocalPlayerHider}" Value="{StaticResource A_Boolean_False}">
                    <Setter Property="Color"  Value="{StaticResource A_Color_HideSeek_Seeker}"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_FZRun_Markup_HideSeek_TitlePanel_YELLOW" TargetType="local:FZRun">
            <Setter Property="Color"  Value="{StaticResource H_Color_Primary_Yellow}"/>
            <Setter Property="FontFamily"  Value="Horizon_C"/>
        </Style>
        
        <local:MappingConverter x:Key="A_MarkupConverter_HideSeek_TitlePanel_Text">
            <local:MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_Markup_HideSeek_TitlePanel_HIGHLIGHT}" />
            <local:MappingConverterEntry Key="{NoCase YELLOW}" Value="{StaticResource A_Style_FZRun_Markup_HideSeek_TitlePanel_YELLOW}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_TitlePanel_Text">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Title_Hider}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Title_Seeker}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_Description_Text_1">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Hider_1}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Seeker_1}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_Description_Text_2">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Hider_2}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Seeker_2}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_FirstPill_ImageSource">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/HideSeek/hider_icon.png" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/HideSeek/seeker_icon.png" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_FirstPill_Text">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_YouAre_Hider}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_YouAre_Seeker}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_SecondPill_ImageSource">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/HideSeek/seeker_icon.png" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/HideSeek/hiderfind_icon.png" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_SecondPill_Text">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Instruction_Hider}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Instruction_Seeker}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_HideSeekPregame_To_Visible" Default="{x:Static Visibility.Collapsed}">
            <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.MapHideSeekPreGame}" Value="{x:Static Visibility.Visible}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_HideSeekPregame_To_Collapsed" Default="{x:Static Visibility.Visible}">
            <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.MapHideSeekPreGame}" Value="{x:Static Visibility.Collapsed}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_FestivalProgressInfo_SceneEnum_To_Collapsed" Default="{x:Static Visibility.Visible}">
            <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.MapHideSeek}" Value="{x:Static Visibility.Collapsed}" />
            <local:MappingConverterEntry Key="{x:Static local:SceneEntryEnum.MapLabyrinth}" Value="{x:Static Visibility.Collapsed}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_LeftBottomText">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Hider_HideFor}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Seeker_HiderFar}" />
        </local:MappingConverter>
        
        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_RightBottomText">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Hider_EscapeTo}" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{local:Loc HideSeek.IDS_Map_Panel_Description_Seeker_HiderNear}" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_LeftBottomImage">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Pre_Game_Map/hider_clock.png" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Pre_Game_Map/seeker_far.png" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_RightBottomImage">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Pre_Game_Map/hider_zone.png" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Pre_Game_Map/seeker_near.png" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_ImageWidth">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="80" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="96" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_ImageHeight">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="80" />
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="48" />
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_MappingConverter_IsLocalPlayerHider_To_Visible" Default="{x:Static Visibility.Visible}">
            <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{x:Static Visibility.Collapsed}" />
        </local:MappingConverter>
        
        <Style x:Key="A_Style_ControllerButtonControl_MapRegionButton" BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}" TargetType="local:ControllerButtonControl">
            <Setter Property="Description" Value="{local:Loc HelpButtons.IDS_ShowMapRegions}" />
            <Setter Property="Visibility" Value="{Binding MapRegionContext.Restriction, Converter={CompareConverter Value={x:Static MapRegionRestriction.Disabled}, Equal=Collapsed, NotEqual=Visible}, FallbackValue=Collapsed}" />
        </Style>

        <Style TargetType="ContentControl"
               x:Key="A_Style_ContentControl_MapNameTitleBlock"
               BasedOn="{StaticResource A_Style_ContentControl_ScreenTitleBlock}">
            <Style.Resources>
                <Style TargetType="FZMaterial"
                       x:Key="H_Style_Container_ScreenTitle"
                       BasedOn="{StaticResource H_Style_Container_ScreenTitle}">
                    <Setter Property="Margin" Value="0,0,0,4" />
                </Style>
            </Style.Resources>
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_HideSeek_SideBar_Pill" TargetType="Control">
            <Grid Height="104">
                <local:FZMaterial Color="{StaticResource H_Color_Glass_Purple_20pc}"
                                  Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll3px}"/>
                <DockPanel Margin="20,12">
                    <local:FZMaterial DockPanel.Dock="Left"
                                      ImageSource="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}"
                                      Height="80"
                                      Width="80"/>
                    <Decorator DockPanel.Dock="Left" Width="15" />
                    <local:FZTextBlock DockPanel.Dock="Left"
                                       VerticalAlignment="Center"
                                       Text="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}" 
                                       TextWrapping="Wrap"
                                       Style="{StaticResource A_Style_TextBlock_HideSeek_DetailPanel_Base}"  />
                </DockPanel>
            </Grid>
        </ControlTemplate>

        <AutoScrollSettings x:Key="A_AutoScrollSettings_HideSeekDetailPanelDescriptions"  
                Speed="40"
                InitialPause="0:0:1.0"
                ScrollType="Speed"
                ScrollSeparation="50"
                ScrollOrientation="Vertical" />

        <Style x:Key="A_Style_FZTextBlock_AutoScrollHideSeekDetailPanelDescription" TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_TextBlock_HideSeek_DetailPanel_Base}">
            <Setter Property="FontFamily" Value="Horizon_D" />
            <Setter Property="Margin" Value="0,0,0,5" />
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="MaxHeight" Value="150" />
            <Setter Property="Stretch" Value="None" />
            <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
            <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_HideSeekDetailPanelDescriptions}" />
        </Style>

        <ControlTemplate x:Key="A_ControlTemplate_HideSeek_SideBar" TargetType="Control">
            <ControlTemplate.Resources>
                <Style x:Key="A_Style_FZMaterial_HideSeek_Arrow" TargetType="FZMaterial">
                    <Setter Property="Width" Value="18"/>
                    <Setter Property="Height" Value="15"/>
                    <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
                    <Setter Property="VerticalAlignment" Value="Center"/>
                    <Setter Property="HorizontalAlignment" Value="Center"/>
                    <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
                    <Setter Property="Data">
                        <Setter.Value>
                            <FZGeometry Data="M0.5,1,1,0,0,0z" />
                        </Setter.Value>
                    </Setter>
                    <Setter Property="RenderTransform">
                        <Setter.Value>
                            <RotateTransform Angle="-90" />
                        </Setter.Value>
                    </Setter>
                </Style>
            </ControlTemplate.Resources>
            <StackPanel Width="364">
                <ContentControl Content="{Binding MapName}"
                                Style="{StaticResource A_Style_ContentControl_MapNameTitleBlock}"
                                x:Name="MapName" />
                <ContentControl Style="{StaticResource A_Style_ContentControl_Header}"
                                Content="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_TitlePanel_Text}}"/>
                <Control Height="104"
                         Template="{StaticResource A_ControlTemplate_HideSeek_SideBar_Pill}"
                         local:BindingProxy.A="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_FirstPill_ImageSource}}"
                         local:BindingProxy.B="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_FirstPill_Text}}"/>
                <Decorator Height="4" />
                <Control Height="104"
                         Template="{StaticResource A_ControlTemplate_HideSeek_SideBar_Pill}"
                         local:BindingProxy.A="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_SecondPill_ImageSource}}"
                         local:BindingProxy.B="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_SecondPill_Text}}"/>
                <Decorator Height="4" />
                <Grid MaxHeight="472">
                    <local:FZMaterial Color="{StaticResource H_Color_Glass_Purple_20pc}"
                                      Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll3px}"/>
                    <DockPanel Margin="20,12">
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AutoScrollHideSeekDetailPanelDescription}"
                                     MarkupConverter="{StaticResource A_MarkupConverter_HideSeek_TitlePanel_Text}"
                                     Text="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_Description_Text_1}}"
                                     DockPanel.Dock="Top"/>
                        <Decorator Height="25" 
                                   DockPanel.Dock="Top"/>
                        <Grid DockPanel.Dock="Top">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>

                            <FZTextBlock MarkupConverter="{StaticResource A_MarkupConverter_HideSeek_TitlePanel_Text}"
                                        Text="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_LeftBottomText}}"
                                        Style="{StaticResource A_Style_TextBlock_HideSeek_DetailPanel_Base}"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Center"
                                        TextAlignment="Center"
                                        FontFamily="Horizon_D"
                                        Margin="0,0,0,17"
                                        Grid.Column="0"
                                        Grid.Row="0"/>
                            <FZMaterial ImageSource="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_LeftBottomImage}}"
                                        Width="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_ImageWidth}}"
                                        Height="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_ImageHeight}}"
                                        Color="{StaticResource H_Color_Primary_White}"
                                        Grid.Column="0"
                                        Grid.Row="1"/>

                            <FZMaterial Style="{StaticResource A_Style_FZMaterial_HideSeek_Arrow}"
                                        Visibility="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_Visible}}"
                                        Grid.Column="1"
                                        Grid.Row="0"/>

                            <FZTextBlock MarkupConverter="{StaticResource A_MarkupConverter_HideSeek_TitlePanel_Text}"
                                        Text="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_RightBottomText}}"
                                        Style="{StaticResource A_Style_TextBlock_HideSeek_DetailPanel_Base}"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Center"
                                        TextAlignment="Center"
                                        FontFamily="Horizon_D"
                                        Margin="0,0,0,17"
                                        Grid.Column="2"
                                        Grid.Row="0"/>
                            <FZMaterial ImageSource="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_RightBottomImage}}"
                                        Width="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_ImageWidth}}"
                                        Height="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_ImageHeight}}"
                                        Color="{StaticResource H_Color_Primary_White}"
                                        Grid.Column="2"
                                        Grid.Row="1"/>

                        </Grid>
                        <Decorator Height="20" 
                                   DockPanel.Dock="Top"/>
                        <local:FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                          Height="1"
                                          Width="320"
                                          DockPanel.Dock="Top"/>
                        <Decorator Height="20" 
                                   DockPanel.Dock="Top"/>
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AutoScrollHideSeekDetailPanelDescription}"
                                     MarkupConverter="{StaticResource A_MarkupConverter_HideSeek_TitlePanel_Text}"
                                     Text="{Binding IsLocalPlayerHider, Converter={StaticResource A_MappingConverter_IsLocalPlayerHider_To_Description_Text_2}}"
                                     DockPanel.Dock="Bottom"/>
                    </DockPanel>
                </Grid>
            </StackPanel>
        </ControlTemplate>

        <MappingConverter x:Key="H_MilestoneIdToProgressText">
            <MappingConverterEntry Key="{StaticResource H_Key_BandNone}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband0}"/>

            <MappingConverterEntry Key="{StaticResource H_Key_Band1}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband1}"/>
            <MappingConverterEntry Key="{StaticResource H_Key_Band2}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband2}"/>
            <MappingConverterEntry Key="{StaticResource H_Key_Band3}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband3}"/>
            <MappingConverterEntry Key="{StaticResource H_Key_Band4}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband4}"/>
            <MappingConverterEntry Key="{StaticResource H_Key_Band5}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband5}"/>
            <MappingConverterEntry Key="{StaticResource H_Key_Band6}" Value="{Loc Campaign.IDS_Map_Festival_Progress_Wristband6}"/>
        </MappingConverter>
        
        <Style x:Key="A_Style_FZRun_Markup_CampaignObjective_HIGHLIGHT" TargetType="local:FZRun">
            <Setter Property="Color"
                    Value="{StaticResource H_Color_Primary_Green}" />
            <Setter Property="FontFamily"
                    Value="Horizon_A" />
        </Style>

        <Style x:Key="A_Style_Control_Map_HFICON" TargetType="Control"
               BasedOn="{StaticResource H_Style_Control_FPIcon}">
            <Setter Property="Height" Value="24" />
            <Setter Property="Width" Value="24" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Margin" Value="0,-3,0,0" />
        </Style>

        <Style x:Key="A_Style_FZRun_Markup_CampaignObjective_HF_ICON"
               TargetType="{Type Control}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{Type Control}">
                        <Control Style="{StaticResource A_Style_Control_Map_HFICON}"
                                 Margin="0,-13" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


        <local:MappingConverter x:Key="A_MarkupConverter_CampaignObjective_Text">
            <local:MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_Markup_CampaignObjective_HIGHLIGHT}" />
            <local:MappingConverterEntry Key="{NoCase HP_ICON}" Value="{StaticResource A_Style_FZRun_Markup_CampaignObjective_HF_ICON}" />
        </local:MappingConverter>

        <MappingConverter x:Key="H_CampaignIdToHeaderImage">
            <MappingConverterEntry Key="{StaticResource H_Id_FestivalCampaign}"
                                   Value="game:\Media\UI\Textures\Data_Bound\Horizon_Map\icons\MapIcons\CampaignObjective\hf_banner.png" />
        </MappingConverter>

        <ControlTemplate x:Key="H_Template_CampaignObjective">
            <DockPanel x:Name="CampaignObjectiveRoot" Width="416">
                <FZMaterial DockPanel.Dock="Top"
                            x:Name="CollectionHeader"
                            ImageSource="{Binding Id, Converter={StaticResource H_CampaignIdToHeaderImage}}"
                            Height="57">
                    <Grid HorizontalAlignment="Right"
                          VerticalAlignment="Bottom"
                          Width="260"
                          Height="38">
                        <Grid HorizontalAlignment="Center"
                              VerticalAlignment="Center">
                            <ProgressBar x:Name="CampaignProgressBar"
                                         Template="{StaticResource H_Template_Milestone_ProgressBarOnly}"
                                         DataContext="{Binding SelectedMilestone}"
                                         Maximum="{Binding Total, Converter={LinearTransformConverter}}"
                                         Value="{Binding Progress, Converter={LinearTransformConverter}}"
                                         Width="222"
                                         Height="24">
                                <DynamicData.Data>
                                    <DynamicDataSource>
                                        <DynamicDataItem Name="Thickness" Value="4" DataType="Thickness" />
                                    </DynamicDataSource>
                                </DynamicData.Data>
                            </ProgressBar>
                            
                            <FZTextBlock x:Name="milestone_text"
                                         FontFamily="Horizon_C"
                                         Margin="4,0"
                                         CapHeight="17"
                                         Visibility="Collapsed"
                                         HorizontalAlignment="Center"
                                         VerticalAlignment="Center"
                                         Color="{StaticResource H_Color_Primary_Yellow}"
                                         Text="{Loc Campaign.IDS_MilestoneReached}"/>
                        </Grid>
                    </Grid>
                </FZMaterial>
                
                <Grid x:Name="blocked_info"
                      DataContext="{Binding SelectedMilestone}">
                    <FZMaterial Color="#88000000"
                                HorizontalAlignment="Stretch"
                                Preset="{GlassRoundtangle BlurAmount=Low}"/>
                    <DockPanel>
                        <Grid DockPanel.Dock="Left" Width="68" Height="68">
                            <FZMaterial DockPanel.Dock="Left" Width="48" Height="48" x:Name="blocked_icon" Stretch="Uniform" StretchDirection="DownOnly" GreedyMeasure="True" ImageSource="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\objective_icon.png"/>
                        </Grid>
                        <FZTextBlock Margin="0,11,8,11"
                                     x:Name="blocked_text"
                                     FontFamily="Horizon_B"
                                     Color="{StaticResource H_Color_Primary_White}"
                                     CapHeight="16"
                                     TextWrapping="Wrap"
                                     VerticalAlignment="Center"
                                     LineAdjust="-0.65"
                                     MarkupConverter="{StaticResource A_MarkupConverter_CampaignObjective_Text}"
                                     Text="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
                                     MultiDataConversion.Value="{Binding Total}"
                                     MultiDataConversion.Parameter="{Binding Progress}"
                                     MultiDataConversion.TargetType="Double"
                                     MultiDataConversion.Converter="{MathOperationConverter Operation=Subtract}"
                                     MultiStringFormatter.Format="{Binding Id, Converter={StaticResource H_MilestoneIdToProgressText}}"
                                     MultiStringFormatter.Param0="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource Self}, Converter={NumUnitConverter FractionDigits=0}}" />
                    </DockPanel>
                </Grid>
            </DockPanel>
            <ControlTemplate.Triggers>
                <DataTrigger Binding="{Binding SelectedMilestone.Id}" Value="{StaticResource H_Key_Band7}">
                    <Setter TargetName="CampaignObjectiveRoot" Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding SelectedMilestone.Id}" Value="{StaticResource H_Key_BandNone}">
                    <Setter TargetName="CampaignObjectiveRoot" Property="Visibility" Value="Visible"/>
                    <Setter TargetName="blocked_text" Property="Text" Value="{Loc Campaign.IDS_Qualifiers_Desc}"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding SelectedMilestone.Blocked}" Value="True">
                    <Setter TargetName="CampaignObjectiveRoot" Property="Visibility" Value="Visible"/>
                    <Setter TargetName="blocked_text" Property="Text" Value="{Binding Id, Converter={StaticResource H_MilestoneIdToBlockedText}}"/>
                    <Setter TargetName="CampaignProgressBar" Property="Visibility" Value="Collapsed"/>
                    <Setter TargetName="milestone_text" Property="Visibility" Value="Visible"/>
                </DataTrigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </Page.Resources>

    <Grid>
        <local:FZMaterial Color="#FF000000" />
        <local:RoutedEventCommand x:Name="MouseUpRoutedEventCommand" RoutedEvent="Mouse.MouseUp"
                                  Command="{Binding OnMouseUp}" />
        <local:RoutedEventCommand x:Name="MouseLeftButtonDownRoutedEventCommand" RoutedEvent="UIElement.MouseLeftButtonDown"
                                  Command="{Binding OnLeftMouseDown}" />

        <local:MapViewControllerInteractive x:Name="PART_ViewController"
                                            Style="{Binding DisplayTrack, Converter={StaticResource A_Converter_TrackToMapViewStyle}}" />

        <Canvas x:Name="PART_LayoutRoot">
            <local:MapCustomRenderElement MapId="{Binding XAMLMapId, Mode=OneWay}"
                                          MapProfile="{Binding MapProfile}"
                                          Roll="{Binding DisplayTrackMapRotation}"
                                          Height="{Binding ActualHeight}"
                                          Width="{Binding ActualWidth}"
                                          MapView="{Binding ElementName=PART_ViewController}"
                                          x:Name="PART_MapCustomRenderElement" />
            <local:FZMaterialGlassCapture />
        </Canvas>
        <local:RoutedEventCommand x:Name="ButtonBarDisableMouseCursorMovement"
                                  RoutedEvent="UIElement.MouseEnter"
                                  Command="{Binding DisableMouseCursorMovement}" />
        <local:RoutedEventCommand x:Name="ButtonBarEnableMouseCursorMovement"
                                  RoutedEvent="UIElement.MouseLeave"
                                  Command="{Binding EnableMouseCursorMovement}" />
        <!-- Bars -->
        <local:PlayerBarControl Style="{StaticResource A_Style_PlayerBarControl_Map}"
                        x:Name="TopBar"/>

        <!-- Festival Progress Info -->
        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
              VerticalAlignment="Top" Visibility="{Binding SceneEnum, Converter={StaticResource A_MappingConverter_FestivalProgressInfo_SceneEnum_To_Collapsed}}">
            <Decorator Margin="{StaticResource A_Thickness_Margin_PlayerBar}">
                <StackPanel HorizontalAlignment="Right"
                            VerticalAlignment="Top">
                    <StackPanel HorizontalAlignment="Right"
                                VerticalAlignment="Top"
                                Visibility="{Binding CampaignProgress, FallbackValue=Collapsed, Converter={StaticResource A_Converter_VisibleWhenNotNull}}">
                        <Decorator Margin="0,50,0,0"
                                   Visibility="{Binding IsCollectionCampaignIntroduced, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                            <Control Template="{StaticResource H_Template_CampaignObjective}"
                                     DataContext="{Binding CampaignProgress[0]}" />
                        </Decorator>
                    </StackPanel>
                    
                    <local:FZMaterial x:Name="InfoPrompt" Style="{StaticResource A_Style_FZMaterial_InstructionBacking}"
                                      Visibility="{Binding InstructionText, Converter={StaticResource A_StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                                      HorizontalAlignment="Right"
                                      VerticalAlignment="Top">
                        <StackPanel Orientation="Horizontal">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_InfoPromptIcon}"/>
                            <local:FZTextBlock Text="{Binding InstructionText}"
                                           Style="{StaticResource A_Style_FZTextBlock_PlayerBarBold}"
                                           VerticalAlignment="Center"
                                           Margin="0,0,10,0"/>
                        </StackPanel>
                    </local:FZMaterial>
                </StackPanel>
            </Decorator>

            <Viewbox Margin="{StaticResource A_Thickness_Margin_ButtonBar}"
                StretchDirection="DownOnly"
                MaxWidth="375"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Right">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_EventCounter}">
                    <StackPanel Orientation="Horizontal">
                        <local:FZTextBlock Text="{local:Loc Map.IDS_CampaignRouteSelect_EventsSelected}"
                                       Color="{StaticResource A_Color_White}" Margin="12"
                                       CapHeight="24" FontFamily="Horizon_B"
                                       VerticalAlignment="Center"/>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_FlatPanel_TileRight}" Color="{StaticResource A_Color_Map_EventsSelectedBackground}">
                            <local:FZTextBlock Text="{Binding NumEventsSelected}" Margin="12"
                                       FontFamily="Horizon_A" VerticalAlignment="Center"
                                       CapHeight="24"
                                       Color="{StaticResource A_Color_Map_EventsSelectedValue}" />
                        </local:FZMaterial>
                    </StackPanel>
                </local:FZMaterial>
            </Viewbox>
            <Grid x:Name="EliminatorTimer" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="78,40,78,64">
                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_EliminatorTimer}">
                    <Decorator Margin="23,0,23,20" VerticalAlignment="Bottom" HorizontalAlignment="Center">
                        <DockPanel>
                            <local:FZMaterial x:Name="ClockIconContainer"  DockPanel.Dock="Left" Color="{StaticResource PART_A_Color_ProgressionThread_eliminator}" Preset="{StaticResource H_Roundtangle_LeftOnly_1px}">
                                <local:FZMaterial x:Name="ClockIcon" Width="40" Height="40" ImageSource="/ForzaUI;component/Textures/Data_Bound/Eliminator/Map/ELIM_TimerIcon.png"/>
                            </local:FZMaterial>
                            <Grid>
                                <local:FZMaterial CaptureSubgraph="True" Preset="{StaticResource H_Roundtangle_RightOnly_1px}">
                                    <Grid>
                                        <local:FZMaterial x:Name="TimerBackground" Style="{StaticResource A_Style_FZMaterial_FlatPanel_Base}" Color="{StaticResource A_Color_HUD_Glass_Eliminator}" Width="220"/>
                                        <local:FZMaterial x:Name="TimerFill" Width="{Binding TimeRemainingRatio, Converter={StaticResource A_LinearTransformConverter_EliminatorTimer_MaxBarWidth}, FallbackValue=0}"
                                                          Style="{StaticResource A_Style_FZMaterial_FlatPanel_Base}" Color="{StaticResource PART_A_Color_ProgressionThread_eliminator}" HorizontalAlignment="Left"/>
                                    </Grid>
                                </local:FZMaterial>
                                <Decorator Margin="12" HorizontalAlignment="Right" LayoutTransform="{StaticResource A_SkewTransform_HUD_Italics}">
                                    <local:FZTextBlock Text="{Binding TimeRemaining}"
                                                       Style="{StaticResource A_Style_FZTextBlock_Heading_Large}"
                                                       CapHeight="16"
                                                       MinWidth="34"
                                                       VerticalAlignment="Center" HorizontalAlignment="Right"
                                                       Color="{StaticResource A_Color_White}"/>
                                </Decorator>
                            </Grid>
                        </DockPanel>
                    </Decorator>
                </local:FZMaterial>
            </Grid>
            <!-- Debug Only -->
            <local:FZMaterial Color="#80000000"
                              Visibility="{Binding SelectionFilters, Converter={StaticResource A_StringVisConverter}, FallbackValue=Collapsed}"
                              VerticalAlignment="Center"
                              HorizontalAlignment="Right">
                <local:FZTextBlock Text="{Binding SelectionFilters}"
                                   FontSize="24"
                                   Color="#FFFFFFFF"
                                   FontFamily="Horizon_B"
                                   Margin="20" />
            </local:FZMaterial>
        </Grid>

        <Grid x:Name="HideSeekSideBar" 
              Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <Control Template="{StaticResource A_ControlTemplate_HideSeek_SideBar}"
                     HorizontalAlignment="Left" VerticalAlignment="Center"
                     Margin="85,0,0,0"
                     Visibility="{Binding SceneEnum, Converter={StaticResource A_MappingConverter_HideSeekPregame_To_Visible}}"/>
            <ContentControl Style="{StaticResource A_Style_ContentControl_LoadingSpinnerWithMessage}" 
                            Visibility="{Binding SceneEnum, Converter={StaticResource A_MappingConverter_HideSeekPregame_To_Visible}}" />
            <local:MapCustomRenderElement Style="{StaticResource A_Style_MapCustomRenderElement_UIMap}" DataContext="{Binding MainMapData}"
                                  MapView="{Binding ElementName=HideSeekMapView}" 
                                          Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType=Page}}"
                                          Width="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=Page}}"
                                          HorizontalAlignment="Right" VerticalAlignment="Center" />
                <DockPanel x:Name="upsell" HorizontalAlignment="Left" Width="470" Margin="92,70,0,172">
                <DockPanel.Style>
                    <Style TargetType="DockPanel">
                        <Setter Property="local:BlendValue.InputChangedStoryboard" Value="{StaticResource A_Storyboard_MapPinOpacity_BlendValueInputChanged}" />
                        <Setter Property="local:BlendValue.Input" Value="{Binding CursorX, ElementName=PART_ViewController, Converter={CompareConverter}, ConverterParameter=560}" />
                        <Setter Property="local:BlendValue.BlendFromPreviousOutput" Value="True" />
                        <Setter Property="local:BlendValue.ShouldSkipInitialInputChange" Value="True" />
                        <Setter Property="Opacity" Value="{Binding (local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding UpsellMapData}" Value="{Null}">
                                <Setter Property="Visibility" Value="Hidden"/>
                            </DataTrigger>
                            <DataTrigger Binding="{Binding UpsellMapData.Title}" Value="">
                                <Setter Property="Visibility" Value="Collapsed"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </DockPanel.Style>
                <Viewbox DockPanel.Dock="Top">
                    <FZMaterial GetSizeFromTexture="True" ImageSource="{Binding UpsellMapData.LogoPath}"/>
                </Viewbox>
                <Grid>
                    <ContentControl Template="{StaticResource A_ControlTemplate_SidePanel}"
                                    Tag="{Binding UpsellMapData.Title}"
                                    Margin="0,4,0,0">
                        <ContentControl Template="{StaticResource A_ControlTemplate_ContentControl_DescriptionPanel_DescriptionText}"
                                        Content="{Binding UpsellMapData.Description}" IsHitTestVisible="False" Focusable="False"/>
                    </ContentControl>              
                </Grid>
            </DockPanel>

        </Grid>

        <Canvas x:Name="PinCanvas">
            <Grid x:Name="PinContainer"
                  Style="{StaticResource A_Style_PinContainer}">
                <ContentControl Content="{Binding SnapContext}"
                                Style="{StaticResource A_Style_ContentControl_MapPin}"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                IsHitTestVisible="False"
                                local:AttachedRoutedEventCommand.Command="{Binding OnPinSizeChangedCommand}"
                                local:AttachedRoutedEventCommand.RoutedEvent="FrameworkElement.SizeChanged"
                                x:Name="Pin">
                    <ContentControl.Template>
                        <ControlTemplate TargetType="ContentControl">
                            <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
                                       Height="Auto"
                                       Width="Auto"
                                       HorizontalAlignment="Stretch"
                                       VerticalAlignment="Stretch">
                                <FZMaterial x:Name="PinShadow"
                                            Style="{StaticResource A_Style_FZMaterial_MapFloatingPanelShadow}"
                                            Margin="-20" />
                                <ContentPresenter ImmediatelyApplyContentTemplate="True"/>
                            </Grid>
                        </ControlTemplate>
                    </ContentControl.Template>
                </ContentControl>
            </Grid>
        </Canvas>

        <local:FZMaterial x:Name="MouseClickHelperMaterial"
                          GreedyMeasure="True"
                          Color="#00FFFFFF"
                          local:RoutedEventCommand.Action="{Binding ElementName=MouseUpRoutedEventCommand}"
                          local:RoutedEventCommand.Action2="{Binding ElementName=MouseLeftButtonDownRoutedEventCommand}" />

        <local:RoutedEventCommand x:Name="MapZoomInRoutedEventCommand"
                                  RoutedEvent="UIElement.MouseLeftButtonDown"
                                  Command="{Binding MapZoomInCommand}" />
        <local:RoutedEventCommand x:Name="MapZoomOutRoutedEventCommand"
                                  RoutedEvent="UIElement.MouseLeftButtonDown"
                                  Command="{Binding MapZoomOutCommand}" />
        <local:RoutedEventCommand x:Name="UpMapZoomStopRoutedEventCommand"
                                  RoutedEvent="UIElement.MouseLeftButtonUp"
                                  Command="{Binding MapStopZoomCommand}" />
        <local:RoutedEventCommand x:Name="LeaveMapZoomStopRoutedEventCommand"
                                  RoutedEvent="UIElement.MouseLeave"
                                  Command="{Binding MapStopZoomCommand}" />
        
        
        <!--Regions Panel-->
        <Grid x:Name="RegionsParent"
              Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}"
              RenderTransformOrigin="0,0.5"
              HorizontalAlignment="Left"
              DataContext="{Binding MapRegionContext}">
            
            <Grid x:Name="PART_RegionsRoot"
                  HorizontalAlignment="Left"
                  Visibility="{Binding Restriction, Converter={CompareConverter Value={x:Static MapRegionRestriction.Disabled}, Equal=Collapsed, NotEqual=Visible}, FallbackValue=Collapsed}"
                  VerticalAlignment="Top"
                  Margin="0,205,0,0">
                <Grid.Resources>
                    <System:Double x:Key="A_Double_Width_RegionsPanel">502</System:Double>
                    <System:Double x:Key="A_Double_Width_RegionsPanel_Inverse">-524</System:Double>
                    <System:Double x:Key="A_Double_Width_RegionsPanel_Disabled">-800</System:Double>

                    <System:Double x:Key="A_Double_Height_RegionsTopImage">116</System:Double>
                    <System:Double x:Key="A_Double_Height_RegionsTopImageActual">152</System:Double>
                    <System:Double x:Key="A_Double_Height_TopImageSeperator">9</System:Double>
                    <System:Double x:Key="A_Double_Height_TitleArea">49</System:Double>
                    <System:Double x:Key="A_Double_Height_Footer">54</System:Double>

                    <Margin x:Key="A_Margin_FromRegionsTopImage" Top="{Convert {StaticResource A_Double_Height_RegionsTopImage}, Converter={LinearTransformConverter Add={StaticResource A_Double_Height_TopImageSeperator}}}" />

                    <Style TargetType="FZTextBlock"
                           x:Key="A_Style_FZTextBlock_Regions">
                        <Setter Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                        <Setter Property="CapHeight"
                                Value="18" />
                        <Setter Property="FontFamily"
                                Value="Horizon_A_tf" />
                        <Setter Property="VerticalAlignment"
                                Value="Center" />
                    </Style>

                    <Storyboard x:Key="A_Storyboard_RegionsPanel_Show">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_RegionsPanel_Hide">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="{StaticResource A_Double_Width_RegionsPanel_Inverse}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_RegionsPanel_Disable">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="{StaticResource A_Double_Width_RegionsPanel_Disabled}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_Disabled_To_Any">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.55" Value="0" EasingFunction="{CircleEasing EasingMode=EaseInOut}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_Any_To_Disabled">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.55" Value="{StaticResource A_Double_Width_RegionsPanel_Disabled}" EasingFunction="{CircleEasing EasingMode=EaseInOut}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_Hidden_To_Any">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.55" Value="0" EasingFunction="{CircleEasing EasingMode=EaseInOut}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <Storyboard x:Key="A_Storyboard_Any_To_Hidden">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="RegionsPanel">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.55" Value="{StaticResource A_Double_Width_RegionsPanel_Inverse}" EasingFunction="{CircleEasing EasingMode=EaseInOut}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>

                    <MappingConverter x:Key="A_Converter_StatType_To_ImageSource" Default="-">
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.PointsOfInterestFound}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/POIs.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.HiddenCarsFound}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/HiddenCars.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.StoryStarsEarned}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Stories.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.JobsCompleted}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Jobs.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.BuildingsPurchased}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Buildings.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.CollectiblesSmashed}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Collectibles.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.RacesCompleted}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Races.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.PRStuntStarsEarned}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/PRStunts.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.WristbandEventsCompleted}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/WristbandEvents.png"/>
                        <MappingConverterEntry Key="{x:Static local:RegionStatType.RegionDiscoveredPercentage}" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/RegionDiscovered.png"/>
                    </MappingConverter>

                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TypeIcons/Obscured.png"
                     x:Key="A_ImageSource_StatType_Obscured" />

                    <!-- These duplicate the paths as provided from Game.Map.MapRegion, but this is the least disruptive way to preload them. -->
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Ito.png"
                     x:Key="A_ImageSource_RegionTopImage_Ito" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Nangan.png"
                     x:Key="A_ImageSource_RegionTopImage_Nangan" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Minamino.png"
                     x:Key="A_ImageSource_RegionTopImage_Minamino" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Sotoyama.png"
                     x:Key="A_ImageSource_RegionTopImage_Sotoyama" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Ohtani.png"
                     x:Key="A_ImageSource_RegionTopImage_Ohtani" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Legend.png"
                     x:Key="A_ImageSource_RegionTopImage_Legend" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Shimanoyama.png"
                     x:Key="A_ImageSource_RegionTopImage_Shimanoyama" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Takashiro.png"
                     x:Key="A_ImageSource_RegionTopImage_Takashiro" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Hokubu.png"
                     x:Key="A_ImageSource_RegionTopImage_Hokubu" />
                    <BitmapImage UriSource="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/regions/TopHeaderImages/Tokyo.png"
                     x:Key="A_ImageSource_RegionTopImage_Tokyo" />

                    <Style x:Key="H_Style_FZMaterial_StatTypeImage"
                            TargetType="{Type FZMaterial}">
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding IsObscured}" 
                                         Value="True">
                                <Setter Property="ImageSource"
                                        Value="{StaticResource A_ImageSource_StatType_Obscured}" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding IsObscured}"
                                         Value="False">
                                <Setter Property="ImageSource"
                                        Value="{Binding StatType, Converter={StaticResource A_Converter_StatType_To_ImageSource}}" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>

                    <local:MappingConverter x:Key="A_MappingConverter_IsCompleteBoolToStatTextColor">
                        <local:MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{StaticResource H_Color_Primary_Green}"/>
                        <local:MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{StaticResource H_Color_Primary_White}"/>
                    </local:MappingConverter>
                    
                    <Style x:Key="A_Style_CompletionValueText_HIGHLIGHT"
                           TargetType="local:FZRun">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Green}"/>
                    </Style>

                    <MappingConverter x:Key="A_MappingConverter_CompletionValueText" >
                        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_CompletionValueText_HIGHLIGHT}" />
                    </MappingConverter>

                    <DataTemplate x:Key="A_DataTemplate_StatItem">
                        <Grid VerticalAlignment="Center"
                              Height="42"
                              Margin="15,0,16,0">
                            <local:FZMaterial Style="{StaticResource H_Style_FZMaterial_StatTypeImage}"
                                              Width="38"
                                              Height="38"
                                              Color="{StaticResource H_Color_Primary_Green}"
                                              VerticalAlignment="Center"
                                              HorizontalAlignment="Left"/>
                            <DockPanel HorizontalAlignment="Stretch"
                                       VerticalAlignment="Center"
                                       Margin ="43,0,0,0">
                                <local:FZTextBlock DockPanel.Dock="Right"
                                                   x:Name="StatValueText"
                                                   FontFamily="Horizon_A_tf"
                                                   CapHeight="17"
                                                   Color="{Binding IsCompleted, Converter={StaticResource A_MappingConverter_IsCompleteBoolToStatTextColor}}"
                                                   Text="{Binding StatValue}"
                                                   VerticalAlignment="Center"
                                                   MarkupConverter="{StaticResource A_MappingConverter_CompletionValueText}"/>
                                <local:FZTextBlock CapHeight="17"
                                                   FontFamily="Horizon_B_tf"
                                                   Color="{StaticResource H_Color_Primary_White}"
                                                   Text="{Binding StatTitle}"
                                                   VerticalAlignment="Center"/>
                            </DockPanel>

                            <!--Margin puts it under the footer, for the last item in the list--> 
                            <local:FZMaterial Height="1"
                                              Opacity="0.3"
                                              Margin="0,0,0,-1" 
                                              VerticalAlignment="Bottom"/>
                        </Grid>
                    </DataTemplate>

                </Grid.Resources>
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="VisualStateGroup">
                        <VisualState x:Name="PART_RegionsPanel_Disabled" Storyboard="{StaticResource A_Storyboard_RegionsPanel_Disable}"/>
                        <VisualState x:Name="PART_RegionsPanel_Hidden" Storyboard="{StaticResource A_Storyboard_RegionsPanel_Hide}"/>
                        <VisualState x:Name="PART_RegionsPanel_Shown" Storyboard="{StaticResource A_Storyboard_RegionsPanel_Show}"/>
                        <VisualStateGroup.Transitions>
                            <VisualTransition From="PART_RegionsPanel_Hidden" GeneratedDuration="0:0:0.5" Storyboard="{StaticResource A_Storyboard_Hidden_To_Any}"/>
                            <VisualTransition To="PART_RegionsPanel_Hidden" GeneratedDuration="0:0:0.5" Storyboard="{StaticResource A_Storyboard_Any_To_Hidden}"/>
                            <VisualTransition From="PART_RegionsPanel_Disabled" GeneratedDuration="0:0:0.5" Storyboard="{StaticResource A_Storyboard_Disabled_To_Any}"/>
                            <VisualTransition To="PART_RegionsPanel_Disabled" GeneratedDuration="0:0:0.5" Storyboard="{StaticResource A_Storyboard_Any_To_Disabled}"/>
                        </VisualStateGroup.Transitions>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>

                <MappingConverterResourcePreloader ValueType="{Type BitmapImage}"
                                                   Converter="{StaticResource A_Converter_StatType_To_ImageSource}" />
                <!--Region Panel-->
                <DockPanel x:Name="RegionsPanel"
                           Width="{StaticResource A_Double_Width_RegionsPanel}"
                           Margin="0,0,0,0">
                    <DockPanel.RenderTransform>
                        <TranslateTransform />
                    </DockPanel.RenderTransform>

                    <local:FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                                      Width="11"
                                      DockPanel.Dock="Left" />

                    <Decorator x:Name="RegionsTopImageParent"
                               DataContext="{Binding CurrentRegion}"
                               Height="{StaticResource A_Double_Height_RegionsTopImage}"
                               DockPanel.Dock="Top">
                        <local:FZMaterial x:Name="RegionsTopImage"
                                          Height="{StaticResource A_Double_Height_RegionsTopImageActual}"
                                          VerticalAlignment="Bottom"
                                          ImageSource="{Binding TopImagePath}">
                            <StackPanel VerticalAlignment="Bottom"
                                        HorizontalAlignment="Left"
                                        Margin="15,0">
                                <local:FZTextBlock x:Name="RegionJapaneseName"
                                                   Color="{StaticResource H_Color_Primary_White}"
                                                   CapHeight="18"
                                                   Margin="0,10">
                                    <local:FZTextBlock.Style>
                                        <Style TargetType="FZTextBlock">
                                            <Setter Property="Text"
                                                    Value="{Binding JapaneseRegionName}" />
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding LangStr, Source={StaticResource PART_UISceneContext}}"
                                                             Value="JP">
                                                    <Setter Property="Text"
                                                            Value="{Binding EnglishRegionName}" />
                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </local:FZTextBlock.Style>
                                </local:FZTextBlock>
                                <local:FZTextBlock x:Name="RegionName"
                                                   Text="{Binding RegionName}"
                                                   Color="{StaticResource H_Color_Primary_White}"
                                                   CapHeight="21"
                                                   Margin="0,0,0,15"
                                                   FontFamily="Horizon_C" />
                            </StackPanel>
                        </local:FZMaterial>
                    </Decorator>

                    <local:FZMaterial x:Name="TopImageSeperator"
                                      Height="{StaticResource A_Double_Height_TopImageSeperator}"
                                      Color="{StaticResource H_Color_Primary_Black}"
                                      DockPanel.Dock="Top" />

                    <local:FZMaterial Height="{StaticResource A_Double_Height_TitleArea}"
                                      Color="{StaticResource H_Color_Primary_Green}"
                                      DockPanel.Dock="Top"
                                      Panel.ZIndex="100"
                                      Margin="-11,0,0,0">
                        <local:FZTextBlock x:Name="RegionPanelTitle"
                                           Margin="26,0,0,0"
                                           Style="{StaticResource A_Style_FZTextBlock_Regions}"
                                           Color="{StaticResource H_Color_Primary_Black}"
                                           Text="{Binding TitleText}"
                                           FontFamily="Horizon_C" />
                    </local:FZMaterial>

                    <local:CommonListBox x:Name="RegionStats"
                                         DataContext="{Binding CurrentRegion}"
                                         ItemsSource="{Binding Stats}"
                                         Background="{x:Null}"
                                         BorderBrush="{x:Null}"
                                         BorderThickness="0"
                                         Style="{x:Null}"
                                         ItemTemplate="{StaticResource A_DataTemplate_StatItem}"
                                         DockPanel.Dock="Top">
                        <local:CommonListBox.Template>
                            <ControlTemplate TargetType="{x:Type local:CommonListBox}">
                                <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
                                                  Color="{StaticResource A_Color_GlassPanel_NonInteractive}">
                                    <StackPanel IsItemsHost="True"
                                                VerticalAlignment="Bottom" />
                                </local:FZMaterial>
                            </ControlTemplate>
                        </local:CommonListBox.Template>
                        <local:CommonListBox.ItemContainerStyle>
                            <Style TargetType="{x:Type ListBoxItem}">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                            <ContentPresenter HorizontalAlignment="Stretch" />
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </local:CommonListBox.ItemContainerStyle>
                    </local:CommonListBox>

                    <local:FZMaterial x:Name="RegionsFooter"
                                      Color="{StaticResource H_Color_Primary_Black}"
                                      Height="{StaticResource A_Double_Height_Footer}"
                                      DockPanel.Dock="Top">
                        <DockPanel Margin="15,0,16,0">
                            <local:FZTextBlock x:Name="RegionFooterValue"
                                               DockPanel.Dock="Right"
                                               Style="{StaticResource A_Style_FZTextBlock_Regions}"
                                               Text="{Binding CurrentRegion.CompletionText, Mode=OneWay}"
                                               MarkupConverter="{StaticResource A_MappingConverter_CompletionValueText}" />
                            <local:FZTextBlock x:Name="RegionFooterTitle"
                                               Style="{StaticResource A_Style_FZTextBlock_Regions}"
                                               FontFamily="Horizon_C"
                                               Text="{Binding CompletionTitleText}" />
                        </DockPanel>
                    </local:FZMaterial>

                </DockPanel>
            </Grid>
        </Grid>

        <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        Visibility="{Binding SceneEnum, Converter={StaticResource A_MappingConverter_HideSeekPregame_To_Collapsed}}"
                        x:Name="BottomBar">
            <Grid>
                <local:FZMaterial x:Name="MouseButtonBarHitHelper"
                              local:RoutedEventCommand.Action="{Binding ElementName=ButtonBarDisableMouseCursorMovement}"
                              local:RoutedEventCommand.Action2="{Binding ElementName=ButtonBarEnableMouseCursorMovement}"
                              Color="#00000000" />
                <local:ControllerButtonPanel x:Name="PART_HelpPanel"
                                         Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                    <local:ControllerButtonControl Button="A"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_MapAButton}" />
                    <local:ControllerButtonControl Button="B"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_MapBackButton}" />
                    <local:ControllerButtonControl Button="X"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_MapXButton}" />
                    <local:ControllerButtonControl Button="Y" 
                                                   Style="{StaticResource A_Style_ControllerButtonControl_MapYButton}"/>
                    <local:ControllerButtonControl Button="LBumper"
                                                   Style="{StaticResource A_Style_ControllerButtonControl_MapRegionButton}" />
                    <local:ControllerButtonControl Button="RBumper" Style="{StaticResource A_Style_ControllerButtonControl_MapRBButton}"/>
                    <local:ControllerButtonControl Button="RThumb" />
                     <local:ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_MapStartButton}"
                                                    Button="Start" />
                </local:ControllerButtonPanel>
            </Grid>
        </ContentControl>
    </Grid>
</MapScene>
