<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <AutoScrollSettings x:Key="H_AutoScrollSettings_Default"
        ScrollSeparation="20"
        InitialPause="0:0:0.5"
        Speed="20.0"
        ScrollOrientation="Vertical"
        ApplyClip="True"/>
    
    <AutoScrollSettings x:Key="H_AutoScrollSettings_Descriptions" 
        ScrollSeparation="60"
        ScrollOrientation="Vertical"
        Speed="30"
        InitialPause="0:0:0.75"/>

    <AutoScrollSettings x:Key="H_AutoScrollSettings_Horizontal_Title" 
        ScrollSeparation="50"
        ScrollOrientation="Horizontal"
        Speed="20"
        InitialPause="0:0:0.75"/>

    <AutoScrollSettings x:Key="A_AutoScrollSettings_CarName"
            ScrollSeparation="100"
            InitialPause="0:0:0.5"
            Speed="40"
            ScrollOrientation="Horizontal"
            ApplyClip="True"/>

    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_Heading_28px">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="CapHeight"
            Value="28" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="30,15,30,15" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_Description_Body_16px">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_White}" />
        <Setter
            Property="FontFamily"
            Value="Horizon_D" />
        <Setter
            Property="CapHeight"
            Value="16" />
        <Setter
            Property="TextWrapping"
            Value="Wrap" />
        <Setter
            Property="FZTextBlock.TextAlignment"
            Value="Center" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="28,24,28,24" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_Description_Body_16px_Scrolling"
        BasedOn="{StaticResource H_Style_Text_Description_Body_16px}">
        <Setter
            Property="Stretch"
            Value="None"/>
    </Style>
     <Style x:Key="H_Style_Text_Description_Body_12px_Scrolling" TargetType="FZTextBlock"
        BasedOn="{StaticResource H_Style_Text_Description_Body_16px}">
        <Setter Property="Stretch" Value="None"/>
        <Setter Property="CapHeight" Value="12"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="AutoScroll" Value="{StaticResource H_AutoScrollSettings_Descriptions}"/>
        <Setter Property="AutoScroll.AllowScrolling" Value="True"/>
        <Setter Property="Margin" Value="0"/>
    </Style>
    <Thickness x:Key="H_Margin_Text_ListOption">24,0,24,0</Thickness>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_ListOption_16px">
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ContentControl}}"
                Value="True">
                <Setter
                    Property="Color"
                    Value="{StaticResource A_Color_ListItemText_Focused}" />
            </DataTrigger>
        </Style.Triggers>
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Setter
            Property="FontFamily"
            Value="Horizon_A" />
        <Setter
            Property="CapHeight"
            Value="18" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="{StaticResource H_Margin_Text_ListOption}" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_ListOption_B_16px"
        BasedOn="{StaticResource H_Style_Text_ListOption_16px}">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Setter
            Property="CapHeight"
            Value="16" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="TextWrapping"
            Value="Wrap" />
        <Setter
            Property="FontFamily"
            Value="Horizon_A" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_ScreenTitle">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_White}" />
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="CapHeight"
            Value="22" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="24,0" />
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="H_Style_TemplatedWrapper_ScreenTitle">
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Margin"
            Value="0,0,0,12" />
        <Setter
            Property="MinWidth"
            Value="364" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <FZMaterial
                        x:Name="TextBacking"
                        Style="{DynamicResource H_Style_Container_ScreenTitle}"
                        ScreenReader.Line="{TemplateBinding Content}"
                        ScreenReader.Event="OnLoad"
                        ScreenReader.LineType="ScreenTitle">
                        <FZTextBlock
                            Style="{DynamicResource H_Style_Text_ScreenTitle}"
                            Text="{TemplateBinding Content}" />
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate x:Key="A_Template_Control_ShadowMaterial" TargetType="ContentControl">
        <Grid>
            <FZMaterial Margin="0,0,-17,-17" Color="{StaticResource A_Color_DropShadow}" Opacity="1.0" IsHitTestVisible="False">
                <FZMaterial.Preset>
                    <FZMaterialPresetRoundtangle 
                        x:Name="Shadow"
                        Softness="17"
                        CornerRadius="1"/>
                </FZMaterial.Preset>
            </FZMaterial>
            <ContentPresenter />
        </Grid>
    </ControlTemplate>

    <Style x:Key="A_Style_ScreenTitleMarkup_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_ScreenTitle" >
        <MappingConverterEntry Key="{NoCase NIGHLIGHT}" Value="{StaticResource A_Style_ScreenTitleMarkup_HIGHLIGHT}" />
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_OpaqueIfIsNotEnabled" Default="1">
        <MappingConverterEntry Key="True" Value="0" />
    </MappingConverter>
    
    <Style
        TargetType="ContentControl"
        x:Key="H_Style_TemplatedWrapper_ScreenTitleWithMarkup">
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <ContentControl Template="{StaticResource A_Template_Control_ShadowMaterial}">
                        <FZMaterial
                            x:Name="TextBacking"
                            Preset="{StaticResource H_Roundtangle_Outer_1px}"
                            Color="{StaticResource H_Color_Primary_Pink}"
                            ScreenReader.Line="{TemplateBinding Content}"
                            ScreenReader.Event="OnLoad"
                            ScreenReader.LineType="ScreenTitle">
                            <FZTextBlock
                                Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                                Margin="30,10"
                                HorizontalAlignment="Center"
                                Text="{TemplateBinding Content}"
                                MarkupConverter="{StaticResource A_MappingConverter_ScreenTitle}"
                                Color="{StaticResource H_Color_Primary_White}"
                                CapHeight="24"/>
                        </FZMaterial>
                    </ContentControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="H_Style_TemplatedWrapper_ScreenTitleWithAutoScroll">
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Margin"
            Value="0,0,0,12" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <FZMaterial
                        x:Name="TextBacking"
                        Style="{DynamicResource H_Style_Container_ScreenTitle}"
                        ScreenReader.Line="{TemplateBinding Content}"
                        ScreenReader.Event="OnLoad"
                        ScreenReader.LineType="ScreenTitle" >
                        <Decorator ClipToBounds="True" Margin="16,4">
                            <FZTextBlock Style="{StaticResource H_Style_Text_ScreenTitle}"
                                Text="{TemplateBinding Content}"                                
                                Stretch="None"
                                Margin="0"
                                AutoScroll="{StaticResource H_AutoScrollSettings_Horizontal_Title}"
                                AutoScroll.AllowScrolling="True"/>
                        </Decorator>
                    </FZMaterial>       
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_Container_DescriptionTitle">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Green}" />
        <Setter
            Property="Height"
            Value="50" />
        <Setter
            Property="Margin"
            Value="0,0,0,4" />
        <Setter
            Property="Preset"
            Value="{Roundtangle CornerRadius=2}" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_DescriptionTitle">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="CapHeight"
            Value="18" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="16,10,16,10" />
        <Setter
            Property="TrackingAdjust"
            Value="0.005" />
    </Style>
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_Container_StateBox_Green">
        <Setter
            Property="Height"
            Value="28" />
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Green}" />
        <Setter
            Property="Preset"
            Value="{StaticResource H_Roundtangle_Outer_1px}" />
        <Setter
            Property="MinWidth"
            Value="0" />
    </Style>
    <Style
        TargetType="FZTextBlock"
        x:Key="H_Style_Text_StateBox_Text">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Setter
            Property="CapHeight"
            Value="14" />
        <Setter 
            Property="FontFamily"
            Value="Horizon_A"/>
        <Setter
            Property="Margin"
            Value="7,0,7,0" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
    </Style>
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_LineBreak_Purple">
        <Setter
            Property="Color"
            Value="#33341735" />
        <Setter
            Property="Height"
            Value="1" />
        <Setter
            Property="VerticalAlignment"
            Value="Top" />
    </Style>
    <Style
        x:Key="H_Style_Divider_ListOption"
        TargetType="FZMaterial"
        BasedOn="{StaticResource H_Style_LineBreak_Purple}">
        <Setter 
            Property="Margin"
            Value="8,0" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                Value="True">
                <Setter
                    Property="Visibility"
                    Value="Hidden" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding (ItemsControl.AlternationIndex), RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                Value="0">
                <Setter
                    Property="Visibility"
                    Value="Hidden" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_Container_Carousel_Tile">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_White}" />
        <Setter
            Property="Preset"
            Value="{Roundtangle CornerRadius=8}" />
    </Style>
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_Container_Carousel_Tile_Dark">
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Glass_Purple_40pc}" />
        <Setter
            Property="Preset"
            Value="{StaticResource H_GlassRoundtangle_8px}" />
    </Style>
    <Double
        x:Key="H_Width_Upgrades">464</Double>
    <Double
        x:Key="H_Height_Upgrades">828</Double>
    <Style
        x:Key="H_Style_TemplatedElement_MouseRollover"
        TargetType="Control">
        <Setter
            Property="Visibility"
            Value="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}" />
        <Setter
            Property="IsEnabled"
            Value="False" />
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <FZMaterial
                        Color="{StaticResource H_Color_Primary_Black}">
                        <FZMaterial.Preset>
                            <FZMaterialPresetRoundtangleStroke
                                CornerRadius="{Binding (DynamicData.Data).MouseRolloverCornerRadius, FallbackValue=1, RelativeSource={RelativeSource TemplatedParent}}"
                                Thickness="3" />
                        </FZMaterial.Preset>
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding IsMouseOver, FallbackValue=False, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="True">
                <Setter
                    Property="IsEnabled"
                    Value="True" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding IsMouseOver, FallbackValue=False, RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                Value="True">
                <Setter
                    Property="IsEnabled"
                    Value="True" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{DynamicDataBinding MouseRolloverDisableWhenSelected, FallbackValue=False}"
                        Value="True" />
                    <Condition
                        Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                        Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{DynamicDataBinding MouseRolloverDisableWhenSelected, FallbackValue=False}"
                        Value="True" />
                    <Condition
                        Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                        Value="True" />
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="H_Style_StrokeHighlight_Instant" TargetType="{x:Type StrokeHighlightControl}">
        <Setter Property="InnerColor" Value="{StaticResource H_Color_StrokeHighlight_DefaultInner}" />
        <Setter Property="OuterColor" Value="{StaticResource H_Color_StrokeHighlight_DefaultOuter}" />
        <Setter Property="OuterThickness" Value="{StaticResource A_Thickness_StrokeHighlight_DefaultOuter}" />
        <Setter Property="InnerThickness" Value="{StaticResource A_Thickness_StrokeHighlight_DefaultInner}" />
        <Setter Property="Focusable" Value="False" />
        <Setter Property="Visibility" Value="{Binding Scale, RelativeSource={RelativeSource Self}, Converter={StaticResource H_VisibleIfGreaterThanZero}, FallbackValue={Static Visibility.Collapsed}}" />
        <Setter Property="IsHitTestVisible" Value="False" />
        <Setter Property="Scale" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type StrokeHighlightControl}">
                    <Grid>
                        <FZMaterial
                            x:Name="InnerStroke"
                            Color="{TemplateBinding InnerColor}"
                            Margin="{Binding InnerStrokeSize, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource H_InvertConverter}, FallbackValue=2}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangleStroke
                                    x:Name="InnerStrokePreset"
                                    Thickness="{Binding InnerStrokeSize, RelativeSource={RelativeSource TemplatedParent}}"
                                    CornerRadius="{Binding InnerCornerRadius, RelativeSource={RelativeSource TemplatedParent}}"/>
                            </FZMaterial.Preset>
                            <FZMaterial x:Name="OuterStroke"
                                        Color="{TemplateBinding OuterColor}"
                                        Margin="{Binding OuterStrokeSize, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource H_InvertConverter}, FallbackValue=2}">
                                <FZMaterial.Preset>
                                    <FZMaterialPresetRoundtangleStroke
                                        x:Name="OuterStrokePreset"
                                        Thickness="{Binding OuterStrokeSize, RelativeSource={RelativeSource TemplatedParent}}"
                                        CornerRadius="{Binding OuterCornerRadius, RelativeSource={RelativeSource TemplatedParent}}"/>
                                </FZMaterial.Preset>
                            </FZMaterial>
                        </FZMaterial>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger
                Property="IsEnabled"
                Value="True">
                <Setter
                    Property="Scale" Value="1"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style
        x:Key="H_Style_StrokeHighlight_Animated"
        TargetType="{x:Type StrokeHighlightControl}"
        BasedOn="{StaticResource H_Style_StrokeHighlight_Instant}">
        <Setter Property="UseLayoutRounding" Value="False"/>
        <Style.Resources>
            <Storyboard x:Key="H_Storyboard_StrokeHighlight_Enter">
                <DoubleAnimation
                    Storyboard.TargetProperty="(StrokeHighlightControl.Scale)"
                    Storyboard.TargetName="{Null}"
                    From="0"
                    To="1"
                    Duration="0:0:0.25"
                    EasingFunction="{CircleEasing EasingMode=EaseOut}"/>
            </Storyboard>
            <Storyboard x:Key="H_Storyboard_StrokeHighlight_Exit">
                <DoubleAnimation
                    Storyboard.TargetProperty="(StrokeHighlightControl.Scale)"
                    Storyboard.TargetName="{Null}"
                    To="0"
                    Duration="0:0:0.16"
                    FillBehavior="Stop"
                    EasingFunction="{CircleEasing EasingMode=EaseOut}"/>
            </Storyboard>
        </Style.Resources>
        <Style.Triggers>
            <Trigger
                Property="IsEnabled"
                Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard Storyboard="{StaticResource H_Storyboard_StrokeHighlight_Enter}"/>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <BeginStoryboard Storyboard="{StaticResource H_Storyboard_StrokeHighlight_Exit}"/>
                </Trigger.ExitActions>
            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="H_Style_StrokeHighlight_Instant_TiledMenu"
           TargetType="{x:Type StrokeHighlightControl}"
           BasedOn="{StaticResource H_Style_StrokeHighlight_Instant}">
        <Setter Property="InnerThickness" Value="{StaticResource A_Thickness_StrokeHighlight_TileInner}"/>
        <Setter Property="OuterThickness" Value="{StaticResource A_Thickness_StrokeHighlight_TileOuter}"/>
    </Style>
    <Style x:Key="H_Style_StrokeHighlight_Animated_TiledMenu"
           TargetType="{x:Type StrokeHighlightControl}"
           BasedOn="{StaticResource H_Style_StrokeHighlight_Animated}">
        <Setter Property="InnerThickness" Value="{StaticResource A_Thickness_StrokeHighlight_TileInner}"/>
        <Setter Property="OuterThickness" Value="{StaticResource A_Thickness_StrokeHighlight_TileOuter}"/>
    </Style>
    <Style x:Key="H_Style_StrokeHighlight_Instant_TextMenu"
           TargetType="{x:Type StrokeHighlightControl}"
           BasedOn="{StaticResource H_Style_StrokeHighlight_Instant}">
        <Setter Property="InnerColor" Value="{StaticResource H_Color_StrokeHighlight_ListInner}"/>
        <Setter Property="OuterColor" Value="{StaticResource H_Color_StrokeHighlight_ListOuter}"/>
    </Style>
    <Style
        x:Key="H_Style_StrokeHighlight_Animated_TextMenu"
        TargetType="{x:Type StrokeHighlightControl}"
        BasedOn="{StaticResource H_Style_StrokeHighlight_Animated}">
        <Style.Triggers>
            <Trigger
                Property="IsEnabled"
                Value="True">
                <Trigger.EnterActions>
                    <BeginStoryboard x:Name="BeginStoryboard_StokeHighlightEnter" Storyboard="{StaticResource H_Storyboard_StrokeHighlight_Enter}"/>
                </Trigger.EnterActions>
                <Trigger.ExitActions>
                    <StopStoryboard BeginStoryboardName="BeginStoryboard_StokeHighlightEnter"/>
                </Trigger.ExitActions>
            </Trigger>
        </Style.Triggers>
        <Setter Property="InnerColor" Value="{StaticResource H_Color_StrokeHighlight_ListInner}"/>
        <Setter Property="OuterColor" Value="{StaticResource H_Color_StrokeHighlight_ListOuter}"/>
    </Style>
    <Style
        x:Key="H_Style_ScrollBar"
        TargetType="{Type ScrollBar}">
        <Style.Resources>
            <ResourceDictionary>
                <Double
                    x:Key="ScrollBarThickness_Default">8</Double>
                <CornerRadius
                    x:Key="ScrollBarCornerRadius_Default">4</CornerRadius>

                <Style 
                    TargetType="FZMaterial"
                    x:Key="ScrollBarBackgroundMaterial_Default" >
                    <Setter
                         Property="Color"
                         Value="{StaticResource H_Color_Glass_Purple_40pc}"/>
                    <Setter
                         Property="Preset">
                        <Setter.Value>
                            <FZMaterialPresetGlassRoundtangle 
                                    BlurAmount="High"
                                    CornerRadius="{Binding (DynamicData.Data).ScrollBarCornerRadius, RelativeSource={RelativeSource AncestorType=ScrollBar}, FallbackValue={StaticResource ScrollBarCornerRadius_Default}}" />
                        </Setter.Value>
                    </Setter>
                </Style>
            </ResourceDictionary>
            <CornerRadius x:Key="hoverbump">3</CornerRadius>

        </Style.Resources>
        <Setter
            Property="Height"
            Value="{DynamicDataBinding ScrollBarThickness, FallbackValue={StaticResource ScrollBarThickness_Default}}" />
        <Setter
            Property="Width"
            Value="Auto" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type ScrollBar}">
                    <Grid>
                        <FZMaterial
                            x:Name="Background"
                            Style="{DynamicDataBinding ScrollBarBackgroundMaterial, FallbackValue={StaticResource ScrollBarBackgroundMaterial_Default}}">
                        </FZMaterial>
                        <Track
                            x:Name="PART_Track"
                            IsDirectionReversed="False"
                            SnapsToDevicePixels="True">
                            <Track.Thumb>
                                <Thumb
                                    SnapsToDevicePixels="True"
                                    OverridesDefaultStyle="True"
                                    IsTabStop="False"
                                    Focusable="False">
                                    <Thumb.Template>
                                        <ControlTemplate
                                            TargetType="{Type Thumb}">
                                            <Grid>
                                                <FZMaterial
                                                    x:Name="hover"
                                                    Color="{StaticResource H_Color_Primary_Black}"
                                                    Margin="-3"
                                                    Visibility="Hidden">
                                                    <FZMaterial.Preset>
                                                        <FZMaterialPresetRoundtangle
                                                            CornerRadius="{Binding (DynamicData.Data).ScrollBarCornerRadius, ElementName=hover, FallbackValue={Convert Value={StaticResource ScrollBarCornerRadius_Default}, Converter={MathOperationConverter Operation=Add}, Parameter={StaticResource hoverbump}}, Converter={MathOperationConverter Operation=Add}, ConverterParameter={StaticResource hoverbump}}" />
                                                    </FZMaterial.Preset>
                                                </FZMaterial>
                                                <FZMaterial
                                                    x:Name="ThumbMaterial"
                                                    Color="{StaticResource H_Color_Primary_White}">
                                                    <FZMaterial.Preset>
                                                        <FZMaterialPresetRoundtangle
                                                            CornerRadius="{Binding (DynamicData.Data).ScrollBarCornerRadius, ElementName=ThumbMaterial, FallbackValue={StaticResource ScrollBarCornerRadius_Default}}" />
                                                    </FZMaterial.Preset>
                                                </FZMaterial>
                                            </Grid>
                                            <ControlTemplate.Triggers>
                                                <Trigger
                                                    Property="IsMouseOver"
                                                    Value="True">
                                                    <Setter
                                                        TargetName="hover"
                                                        Property="Visibility"
                                                        Value="Visible" />
                                                </Trigger>
                                                <Trigger
                                                    Property="IsMouseCaptureWithin"
                                                    Value="True">
                                                    <Setter
                                                        TargetName="hover"
                                                        Property="Visibility"
                                                        Value="Visible" />
                                                </Trigger>
                                            </ControlTemplate.Triggers>
                                        </ControlTemplate>
                                    </Thumb.Template>
                                </Thumb>
                            </Track.Thumb>
                        </Track>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="Orientation"
                            Value="Vertical">
                            <Setter
                                TargetName="PART_Track"
                                Property="IsDirectionReversed"
                                Value="True" />
                        </Trigger>
                        <DataTrigger
                            Binding="{DynamicDataBinding ScrollBarHideWhenNotNeeded, FallbackValue=False}"
                            Value="True">
                            <Setter
                                TargetName="Background"
                                Property="Visibility"
                                Value="{Binding Visibility, ElementName=PART_Track}" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger
                Property="Orientation"
                Value="Vertical">
                <Setter
                    Property="Width"
                    Value="{DynamicDataBinding ScrollBarThickness, FallbackValue={StaticResource ScrollBarThickness_Default}}" />
                <Setter
                    Property="Height"
                    Value="Auto" />
            </Trigger>
        </Style.Triggers>
    </Style>
    

    <MappingConverter x:Key="A_NonZeroVisibilityConverter" Default="Visible">
        <MappingConverterEntry Key="0" Value="Collapsed"/>
    </MappingConverter>

    <AutoScrollSettings x:Key="H_AutoScrollSettings_PartInfo"
                        ScrollSeparation="20"
                        InitialPause="0:0:0.5"
                        Speed="30.0"
                        ScrollOrientation="Horizontal"
                        ApplyClip="True" />

    <DataTemplate
        x:Key="H_DataTemplate_ListItem_TileMenu">
        <Grid>
            <Grid
                RenderTransformOrigin="0.5,0.5"
                ZPanel.ZOffset="0">
                <FZMaterial
                    x:Name="Icon"
                    Preset="{StaticResource H_Roundtangle_Outer_3px}"
                    ImageSource="{Binding IconPath}"
                    Stretch="Uniform" />
                <FZMaterial
                        x:Name="NewBlammo"
                        Visibility="Collapsed"
                        VerticalAlignment="Top"
                        Margin="8"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}"
                        Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIconBackground}">
                        <Decorator
                            Margin="6,0,6,0">
                            <FZTextBlock x:Name="NewBlammoText"
                                Text="{Loc InGameMarketplace.IDS_New}"
                                Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                Color="{StaticResource H_Color_Primary_Black}"
                                CapHeight="14"
                                VerticalAlignment="Center" 
                                TextAlignment="Center"/>
                        </Decorator>
                </FZMaterial>
                <StackPanel
                    Orientation="Horizontal"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Top"
                    Margin="8">
                    <FZMaterial
                        x:Name="BasketIcon"
                        Visibility="Collapsed"
                        Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIconBackground}"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}"
                        Margin="4,0,0,0">
                        <FZMaterial
                            ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Garage/Basket_Icon_Carousel.png"
                            Color="{StaticResource H_Color_Primary_Black}"
                            Width="18"
                            Height="18"/>
                    </FZMaterial>
                    <FZMaterial x:Name="breadcrumb"
                        Visibility="{Binding BreadcrumbCount, FallbackValue=Collapsed, Converter={StaticResource A_NonZeroVisibilityConverter}}"
                        Style="{StaticResource A_Style_FZMaterial_CarSelectCarouselItem_StatusIconBackground}"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}"
                        Margin="4,0,0,0">
                        <Decorator
                            Margin="6,0,6,0">
                            <FZTextBlock x:Name="breadcrumb_text"
                                Text="{Binding BreadcrumbCount}"
                                MaxWidth="68"
                                Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                Color="{StaticResource H_Color_Primary_Black}"
                                FontSize="20"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center" />
                        </Decorator>
                    </FZMaterial>
                    <FZMaterial
                      x:Name="UpgradeChallengeBreadcrumb"
                      Visibility="{Binding ShowBreadcrumb, Converter={FZBooleanToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}}"
                      HorizontalAlignment="Right"
                      VerticalAlignment="Top"
                      Height="28"
                      Width="24"
                      ImageSource="/ForzaUI;component/Textures/Anthem/HUD/InfoIconBreadcrumb.png"
                      Margin="4,0,0,0">
                    </FZMaterial>
                </StackPanel>
                <Decorator
                    x:Name="UpgradedPartInfo"
                    Visibility="Collapsed"
                    VerticalAlignment="Bottom"
                    Margin="8">
                    <FZMaterial
                        Style="{StaticResource A_Style_FZTextBlock_UpgradeStat_TextBackground}"
                        Preset="{StaticResource H_Roundtangle_Outer_1px}"
                        Tag="{Binding UpgradeSummary.Quality, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                        Visibility="{Binding UpgradeSummary.Change, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, Converter={StringVisConverter}, FallbackValue={x:Static Visibility.Collapsed}}">
                        <FZTextBlock MultiStringFormatter.Format="{}{0} {1}"
                                     MultiStringFormatter.Param0="{Binding UpgradeSummary.Dimension, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                                     MultiStringFormatter.Param1="{Binding UpgradeSummary.Change, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                                     Text="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"
                                     Tag="{Binding UpgradeSummary.Quality, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                                     Style="{StaticResource A_Style_FZTextBlock_UpgradeStat_TextForeground}"
                                     FontSize="20"
                                     VerticalAlignment="Center"
                                     HorizontalAlignment="Center"
                                     AutoScroll="{StaticResource H_AutoScrollSettings_PartInfo}"
                                     AutoScroll.AllowScrolling="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem} }"
                                     StretchDirection="DownOnly"
                                     TextTrimming="None"
                                     ClipToBounds="False"
                                     Stretch="None" />
                    </FZMaterial>
                </Decorator>
            </Grid>
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger
                Binding="{Binding Breadcrumb}"
                Value="True">
                <Setter
                    TargetName="breadcrumb"
                    Property="Visibility"
                    Value="Visible" />
                <Setter
                    TargetName="breadcrumb_text"
                    Property="Text"
                    Value="{Loc InGameMarketplace.IDS_New}" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding BreadcrumbCount, FallbackValue={Static CompareResult.LessThan}, Converter={CompareConverter}, ConverterParameter=9}"
                Value="{Static CompareResult.GreaterThan}">
                <Setter
                    TargetName="breadcrumb_text"
                    Property="Text"
                    Value="9+" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding SeamlessHasUpgradeTarget, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, FallbackValue=False}"
                Value="True">
                <Setter TargetName="breadcrumb" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource TemplatedParent}}"
                Value="True">
                <Setter
                    TargetName="UpgradedPartInfo"
                    Property="Visibility"
                    Value="Visible" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding InBasket, FallbackValue=0}"
                Value="1">
                <Setter
                    TargetName="BasketIcon"
                    Property="Visibility"
                    Value="Visible" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding IsNew}"
                        Value="1" />
                    <Condition
                        Binding="{Binding HasRolledOverNewItem, RelativeSource={RelativeSource AncestorType={Type Page}}}"
                        Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter
                    TargetName="NewBlammo"
                    Property="Visibility"
                    Value="Visible" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Status, FallbackValue=0}"
                        Value="2" />
                    <Condition Binding="{Binding InBasket, FallbackValue=0}"
                        Value="0" />
                </MultiDataTrigger.Conditions>
                <Setter TargetName="NewBlammo"
                    Property="Visibility"
                    Value="Visible" />
                <Setter TargetName="NewBlammoText"
                    Property="Text"
                    Value="{local:Loc Upgrades_flow.IDS_Owned}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Status, FallbackValue=0}"
                        Value="1" />
                    <Condition Binding="{Binding InBasket, FallbackValue=0}"
                        Value="0" />
                </MultiDataTrigger.Conditions>
                <Setter TargetName="NewBlammo"
                    Property="Visibility"
                    Value="Visible" />
                <Setter TargetName="NewBlammoText"
                    Property="Text"
                    Value="{local:Loc Upgrades_flow.IDS_Installed}" />
            </MultiDataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>
    <Style
        x:Key="H_Style_Control_Carousel_EmptyItemStyle"
        TargetType="Control">
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Margin"
            Value="0,0,4,4" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <FZMaterial>
                        <FZMaterial.Style>
                            <Style
                                TargetType="FZMaterial">
                                <Setter
                                    Property="Color"
                                    Value="{StaticResource H_Color_Glass_Purple_20pc}" />
                                <Setter
                                    Property="Preset"
                                    Value="{StaticResource H_GlassRoundtangle_8px}" />
                            </Style>
                        </FZMaterial.Style>
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Storyboard
        x:Key="H_Storyboard_Carousel_InstantScroll">
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(BlendValue.Blend)"
            Storyboard.TargetName="{Null}"
            FillBehavior="Stop">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0"
                Value="0" />
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0"
                Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard
        x:Key="H_Storyboard_Carousel_SmoothScroll">
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(BlendValue.Blend)"
            Storyboard.TargetName="{Null}"
            FillBehavior="Stop">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0"
                Value="0" />
            <EasingDoubleKeyFrame
                KeyTime="0:0:0.267"
                Value="1"
                EasingFunction="{QuarticEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Int32
        x:Key="A_Int32_DisableMotionBlur">0</Int32>
    <Int32
        x:Key="A_Int32_EnableMotionBlur">1</Int32>
    <Style
        x:Key="H_VirtualizingWrapPanel_Default"
        TargetType="VirtualizingWrapPanel">
        <Setter
            Property="BlendValue.Input"
            Value="{Binding SelectionWindowOffset, RelativeSource={RelativeSource Self}, Converter={LinearTransformConverter Scale=-1}}" />
        <Setter
            Property="BlendValue.InputChangedStoryboard"
            Value="{StaticResource H_Storyboard_Carousel_SmoothScroll}" />
        <Setter
            Property="BindingProxy.A"
            Value="0.0" />
        <Setter
            Property="BindingProxy.B"
            Value="0.0" />
        <Setter
            Property="MaxValue.A"
            Value="{StaticResource A_Int32_EnableMotionBlur}" />
        <Setter
            Property="MaxValue.B"
            Value="{StaticResource A_Int32_EnableMotionBlur}" />
        <Setter
            Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform
                    X="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}"
                    Y="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}" />
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger
                Property="SelectionWindowOffset"
                Value="0">
                <Setter
                    Property="BlendValue.InputChangedStoryboard"
                    Value="{StaticResource H_Storyboard_Carousel_InstantScroll}" />
            </Trigger>
            <Trigger
                Property="ScrollOrientation"
                Value="Horizontal">
                <Setter
                    Property="BindingProxy.A"
                    Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}}" />
            </Trigger>
            <Trigger
                Property="ScrollOrientation"
                Value="Vertical">
                <Setter
                    Property="BindingProxy.B"
                    Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource Self}}" />
            </Trigger>
        </Style.Triggers>
    </Style>
    <Color
        x:Key="H_Color_UISelfShadow_ForSubgraph">#66FFFFFF</Color>
    <Style
        x:Key="H_Style_FZMaterial_ShadowBase_ForSubgraph"
        TargetType="{Type FZMaterial}">
        <Setter
            Property="RenderTransformOrigin"
            Value="0.5,0.5" />
        <Setter
            Property="IsHitTestVisible"
            Value="False" />
        <Setter
            Property="Preset">
            <Setter.Value>
                <FZMaterialPresetRoundtangle
                    Softness="30"
                    CornerRadius="6"
                    AlphaMode="MultiplyInvColorOnly"
                    Unlit="True" />
            </Setter.Value>
        </Setter>
        <Setter
            Property="Margin"
            Value="-30" />
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_UISelfShadow_ForSubgraph}" />
    </Style>
    <Style
        TargetType="WrapListBox">
        <Setter
            Property="EmptyItemStyle"
            Value="{StaticResource H_Style_Control_Carousel_EmptyItemStyle}" />
    </Style>
    <ControlTemplate
        x:Key="H_ControlTemplate_Carousel_Default"
        TargetType="{Type WrapListBox}">
        <Grid
            Margin="-60">
            <Grid
                MotionBlurEffect.MotionBlurPositionXControl="{Binding (BindingProxy.A), ElementName=VirtualizingWrapPanel}"
                MotionBlurEffect.MotionBlurPositionYControl="{Binding (BindingProxy.B), ElementName=VirtualizingWrapPanel}"
                ClipToBounds="True"
                x:Name="MotionBlur">
                <Grid.Effect>
                    <MotionBlurEffect />
                </Grid.Effect>
                <Decorator
                    Margin="40"
                    ClipToBounds="True">
                    <Grid
                        Margin="20"
                        ClipToBounds="True"
                        x:Name="ScrollClipper">
                        <VirtualizingWrapPanel
                            IsItemsHost="True"
                            KeyboardNavigation.DirectionalNavigation="Contained"
                            OverrideAcrossNavigation="{TemplateBinding OverrideAcrossNavigation}"
                            ScrollOrientation="{TemplateBinding ScrollOrientation}"
                            Margin="0"
                            Style="{StaticResource H_VirtualizingWrapPanel_Default}"
                            ItemWidth="{TemplateBinding ItemWidth}"
                            ItemHeight="{TemplateBinding ItemHeight}"
                            EmptyItemStyle="{TemplateBinding EmptyItemStyle}"
                            SeparatorItemStyle="{TemplateBinding SeparatorItemStyle}"
                            SeparatorPlacement="{TemplateBinding SeparatorPlacement}"
                            BlendValue.ShouldSkipInitialInputChange="True"
                            BlendValue.BlendFromPreviousOutput="True"
                            SelectionLimitTop="{TemplateBinding SelectionLimitTop}"
                            SelectionLimitBottom="{TemplateBinding SelectionLimitBottom}"
                            ScrollWindowMin="{Binding ScrollWindowMin, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                            ScrollWindowMax="{Binding ScrollWindowMax, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                            ScrollWindowSize="{Binding ScrollWindowSize, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                            ScrollWindowValue="{Binding ScrollWindowValue, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                            x:Name="VirtualizingWrapPanel">
                            <EventFire.FzTriggers>
                                <SetProperty EventFireTrigger.Event="fzCollectionChanged" Property="(BlendValue.SkipInitialInputChanges)" Value="{StaticResource A_Int32_One}" />
                            </EventFire.FzTriggers>
                        </VirtualizingWrapPanel>
                    </Grid>
                </Decorator>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger
                Binding="{Binding (MaxValue.Result), ElementName=VirtualizingWrapPanel}"
                Value="0">
                <Setter
                    Property="Effect"
                    TargetName="MotionBlur"
                    Value="{Null}" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <ControlTemplate
        x:Key="H_ControlTemplate_TextMenu_Default"
        TargetType="{Type WrapListBox}">
        <ControlTemplate.Resources>
            <Thickness x:Key="A_Margin_VirtualizingWrapPanel">0,-2</Thickness>
            <Thickness x:Key="A_ClippingMargin_WrapListBox_Scroll">10</Thickness>
            <Thickness x:Key="A_ClippingMargin_WrapListBox_Blur">10</Thickness>
            <Thickness x:Key="A_ClippingMargin_WrapListBox_Negate">-20</Thickness>
        </ControlTemplate.Resources>
        <Grid
            Margin="{DynamicDataBinding WrapListBox_Margin_Negate, FallbackValue={StaticResource A_ClippingMargin_WrapListBox_Negate}}">
            <Grid
                MotionBlurEffect.MotionBlurPositionXControl="{Binding (BindingProxy.A), ElementName=VirtualizingWrapPanel}"
                MotionBlurEffect.MotionBlurPositionYControl="{Binding (BindingProxy.B), ElementName=VirtualizingWrapPanel}"
                ClipToBounds="True"
                x:Name="MotionBlur">
                <Grid.Effect>
                    <MotionBlurEffect />
                </Grid.Effect>
                <Decorator
                    Margin="{DynamicDataBinding WrapListBox_Margin_Blur, FallbackValue={StaticResource A_ClippingMargin_WrapListBox_Blur}}"
                    ClipToBounds="True">
                    <Grid
                        Margin="{DynamicDataBinding WrapListBox_Margin_Scroll, FallbackValue={StaticResource A_ClippingMargin_WrapListBox_Scroll}}"
                        ClipToBounds="True"
                        x:Name="ScrollClipper">
                        <Decorator
                            Margin="0">
                            <VirtualizingWrapPanel
                                IsItemsHost="True"
                                SeparatorPlacement="{TemplateBinding SeparatorPlacement}"
                                KeyboardNavigation.DirectionalNavigation="Contained"
                                OverrideAcrossNavigation="{TemplateBinding OverrideAcrossNavigation}"
                                ScrollOrientation="{TemplateBinding ScrollOrientation}"
                                VerticalAlignment="Center"
                                Margin="{DynamicResource A_Margin_VirtualizingWrapPanel}"
                                Style="{StaticResource H_VirtualizingWrapPanel_Default}"
                                ItemWidth="{TemplateBinding ItemWidth}"
                                ItemHeight="{TemplateBinding ItemHeight}"
                                EmptyItemStyle="{TemplateBinding EmptyItemStyle}"
                                SeparatorItemStyle="{DynamicDataBinding WrapListBox_SeparatorItemStyle, FallbackValue={StaticResource A_Style_Separator_CarouselItem}}"
                                BlendValue.ShouldSkipInitialInputChange="True"
                                BlendValue.BlendFromPreviousOutput="True"
                                SelectionLimitTop="{TemplateBinding SelectionLimitTop}"
                                SelectionLimitBottom="{TemplateBinding SelectionLimitBottom}"
                                EnableUnselectableItems="{TemplateBinding EnableUnselectableItems}"
                                PageSize="{TemplateBinding PageSize}"
                                ScrollWindowMin="{Binding ScrollWindowMin, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                ScrollWindowMax="{Binding ScrollWindowMax, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                ScrollWindowSize="{Binding ScrollWindowSize, Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                ScrollWindowValue="{Binding ScrollWindowValue, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                x:Name="VirtualizingWrapPanel">
                                <EventFire.FzTriggers>
                                    <SetProperty EventFireTrigger.Event="fzCollectionChanged" Property="(BlendValue.SkipInitialInputChanges)" Value="{StaticResource A_Int32_One}" />
                                </EventFire.FzTriggers>
                            </VirtualizingWrapPanel>
                        </Decorator>
                    </Grid>
                </Decorator>
            </Grid>
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger
                Binding="{Binding (MaxValue.Result), ElementName=VirtualizingWrapPanel}"
                Value="0">
                <Setter
                    Property="Effect"
                    TargetName="MotionBlur"
                    Value="{Null}" />
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style
        x:Key="H_Style_FrameworkElement_CarouselSelectionScale"
        TargetType="FrameworkElement">
        <Setter
            Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform />
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}"
                Value="True">
                <DataTrigger.EnterActions>
                    <BeginStoryboard
                        HandoffBehavior="SnapshotAndReplace">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleX)">
                                <DiscreteDoubleKeyFrame
                                    KeyTime="0:0:0.0"
                                    Value="1.0" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleY)">
                                <DiscreteDoubleKeyFrame
                                    KeyTime="0:0:0.0"
                                    Value="1.0" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <BeginStoryboard
                        HandoffBehavior="SnapshotAndReplace">
                        <Storyboard>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleX)">
                                <EasingDoubleKeyFrame
                                    KeyTime="0:0:0.3"
                                    Value="1.0"
                                    EasingFunction="{CircleEasing}" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(FrameworkElement.RenderTransform).(ScaleTransform.ScaleY)">
                                <EasingDoubleKeyFrame
                                    KeyTime="0:0:0.3"
                                    Value="1.0"
                                    EasingFunction="{CircleEasing}" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </DataTrigger.ExitActions>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="H_Style_ContentControl_ContainerBackground" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <FZMaterial x:Name="ItemBackground"
                            Style="{DynamicDataBinding ItemBackgroundStyle, FallbackValue={StaticResource H_Style_Container_Carousel_Tile}}">
                        <ContentPresenter />
                    </FZMaterial>
                    <ControlTemplate.Triggers>
                        <DataTrigger
                            Binding="{Binding UseDarkBg}"
                            Value="1">
                            <Setter
                                TargetName="ItemBackground"
                                Property="Style" 
                                Value="{DynamicDataBinding DarkItemBackgroundStyle, FallbackValue={StaticResource H_Style_Container_Carousel_Tile_Dark}}" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="H_Style_TemplatedElement_MouseRollover_ListBoxItem"
        BasedOn="{StaticResource H_Style_TemplatedElement_MouseRollover}"
        TargetType="{Type Control}">
        <Setter
            Property="MarkAsHandled.RoutedEvent"
            Value="UIElement.MouseLeftButtonDown" />
        <Setter
            Property="AttachedRoutedEventCommand.Enabled"
            Value="{Binding (Selector.IsSelected), RelativeSource={RelativeSource AncestorType=ListBoxItem}}" />
        <Setter
            Property="AttachedRoutedEventCommand.Command"
            Value="{Binding SelectCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
        <Setter
            Property="AttachedRoutedEventCommand.RoutedEvent"
            Value="UIElement.MouseLeftButtonUp" />
        <Setter
            Property="SelectorSelectedItem.SelectAncestorOnRoutedEvent"
            Value="UIElement.MouseLeftButtonUp" />
        <Setter
            Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem
                        Name="MouseRolloverCornerRadius"
                        DataType="CornerRadius"
                        Value="3" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <Storyboard
        x:Key="H_Storyboard_Carousel_ContainerStyle_SelectItemStory">
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(ZPanel.ClippingBias)">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="1" />
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(UIElement.Opacity)"
            Storyboard.TargetName="DropShadow">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0.0"
                Value="0.6" />
        </DoubleAnimationUsingKeyFrames>
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(ZPanel.ClippingBias)"
            Storyboard.TargetName="DropShadow">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="3" />
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(ScaleTransform.ScaleX)"
            Storyboard.TargetName="ShadowScale">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0.0"
                Value="1" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(ScaleTransform.ScaleY)"
            Storyboard.TargetName="ShadowScale">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0.0"
                Value="1" />
        </DoubleAnimationUsingKeyFrames>
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(Panel.ZIndex)"
            Storyboard.Target="{Binding RelativeSource={RelativeSource AncestorType=ContentPresenter}}">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="20" />
        </Int32AnimationUsingKeyFrames>
    </Storyboard>
    <UIStoryboard
        x:Key="H_Storyboard_Carousel_ContainerStyle_DeselectItemStory"
        Duration="0:0:0.36">
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(ZPanel.ClippingBias)">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="1" />
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.3"
                Value="{x:Static Int32.MaxValue}" />
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(UIElement.Opacity)"
            Storyboard.TargetName="DropShadow">
            <EasingDoubleKeyFrame
                KeyTime="0:0:0.3"
                Value="0"
                EasingFunction="{CircleEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(ZPanel.ClippingBias)"
            Storyboard.TargetName="DropShadow">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="3" />
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.3"
                Value="{x:Static Int32.MaxValue}" />
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(ScaleTransform.ScaleX)"
            Storyboard.TargetName="ShadowScale">
            <EasingDoubleKeyFrame
                KeyTime="0:0:0.3"
                Value="0.75"
                EasingFunction="{CircleEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(ScaleTransform.ScaleY)"
            Storyboard.TargetName="ShadowScale">
            <EasingDoubleKeyFrame
                KeyTime="0:0:0.3"
                Value="0.75"
                EasingFunction="{CircleEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(Panel.ZIndex)"
            Storyboard.Target="{Binding RelativeSource={RelativeSource AncestorType=ContentPresenter}}">
            <EasingInt32KeyFrame
                KeyTime="0:0:0.3"
                Value="0"
                EasingFunction="{CircleEasing}" />
        </Int32AnimationUsingKeyFrames>
    </UIStoryboard>
    <Style
        x:Key="H_Style_ContentControl_Carousel_ContainerStyle"
        TargetType="ContentControl">
        <Style.Resources>
            <CornerRadius x:Key="A_StrokeHighlight_ContentRadius">8</CornerRadius>
            <Thickness x:Key="A_StrokeHighlight_InnerThickness">4</Thickness>
            <Thickness x:Key="A_StrokeHighlight_OuterThickness">4</Thickness>
        </Style.Resources>
        <Setter
            Property="Margin"
            Value="0,0,8,8" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type ContentControl}">
                    <ControlTemplate.Resources>
                        <ResourceDictionary>
                            <Storyboard
                                x:Key="PART_TransitionOut" />
                            <Style x:Key="H_Style_TemplatedElement_MouseRollover"
                                   BasedOn="{StaticResource H_Style_TemplatedElement_MouseRollover_ListBoxItem}"
                                   TargetType="{x:Type Control}" />
                        </ResourceDictionary>
                    </ControlTemplate.Resources>
                    <Grid
                        x:Name="OuterContainer">
                        <FZMaterial
                            x:Name="DropShadow"
                            Style="{DynamicDataBinding DropShadowStyle, FallbackValue={StaticResource H_Style_FZMaterial_ShadowBase_ForSubgraph}}">
                            <FZMaterial.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform
                                        ScaleX="0"
                                        ScaleY="0"
                                        x:Name="ShadowScale" />
                                </TransformGroup>
                            </FZMaterial.RenderTransform>
                        </FZMaterial>
                        <Grid
                            x:Name="ScaledContainer"
                            RenderTransformOrigin="0.5,0.5"
                            ZPanel.ZOffset="0"
                            Style="{DynamicDataBinding ScaledContainerStyle, FallbackValue={StaticResource H_Style_FrameworkElement_CarouselSelectionScale}}">
                            <StrokeHighlightControl
                                x:Name="FocusHighlight"
                                Style="{StaticResource H_Style_StrokeHighlight_Animated}"
                                ContentRadius="{DynamicResource A_StrokeHighlight_ContentRadius}"
                                InnerColor="{StaticResource H_Color_StrokeHighlight_DefaultInner}"
                                OuterColor="{StaticResource H_Color_StrokeHighlight_DefaultOuter}"
                                InnerThickness="{DynamicResource A_Thickness_StrokeHighlight_DefaultInner}"
                                OuterThickness="{DynamicResource A_Thickness_StrokeHighlight_DefaultOuter}"
                                IsEnabled="{Binding (Selector.IsSelected), FallbackValue=False, RelativeSource={RelativeSource TemplatedParent}}"
                                UseLayoutRounding="False" />
                            <ContentControl x:Name="content" Style="{DynamicDataBinding ItemBackgroundContainerControlStyle, FallbackValue={StaticResource H_Style_ContentControl_ContainerBackground}}">
                                <ContentPresenter />
                            </ContentControl>
                            <Control x:Name="MouseRollover" Style="{DynamicResource H_Style_TemplatedElement_MouseRollover}" Opacity="{Binding IsEnabled, ElementName=FocusHighlight, Converter={StaticResource A_Converter_OpaqueIfIsNotEnabled}, FallbackValue=0}">
                                <DynamicData.Data>
                                    <DynamicDataSource>
                                        <DynamicDataItem Name="MouseRolloverCornerRadius" Value="{Binding ContentRadius, ElementName=FocusHighlight}"/>
                                    </DynamicDataSource>
                                </DynamicData.Data>
                            </Control>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="Selector.IsSelected"
                            Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard
                                    x:Name="ShowSelected_BeginStoryboard2"
                                    HandoffBehavior="SnapshotAndReplace"
                                    Storyboard="{StaticResource H_Storyboard_Carousel_ContainerStyle_SelectItemStory}" />
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard
                                    x:Name="HideSelected_BeginStoryboard2"
                                    HandoffBehavior="SnapshotAndReplace"
                                    Storyboard="{StaticResource H_Storyboard_Carousel_ContainerStyle_DeselectItemStory}" />
                            </Trigger.ExitActions>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger 
                Property="IsKeyboardFocusWithin" 
                Value="True">
                <Trigger.EnterActions>
                    <RaiseRoutedEvent 
                        RoutedEvent="Selector.Selected"/>
                </Trigger.EnterActions>
            </Trigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource Self}}" 
                               Value="True" />
                    <Condition Binding="{Binding HasPopups, RelativeSource={RelativeSource AncestorType=Page}}"
                               Value="False" />
                </MultiDataTrigger.Conditions>
                <Setter 
                    Property="FocusSelf.WhenTrue" 
                    Value="True" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="A_Style_ListBoxItem_Button" TargetType="ListBoxItem"
                   BasedOn="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}">
        <Style.Resources>
            <CornerRadius x:Key="A_StrokeHighlight_ContentRadius">2</CornerRadius>
        </Style.Resources>
        <Setter Property="Margin" Value="0,0,0,8" />
        <Setter Property="local:FocusOnMouseOverBehaviour.Self" Value="True" />
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem Name="ItemBackgroundStyle"
                                         DataType="Style">
                        <DynamicDataItem.Value>
                            <Style TargetType="{Type FZMaterial}">
                                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}" Value="True">
                                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </DynamicDataItem.Value>
                    </DynamicDataItem>
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="WrapListBox"
        x:Key="H_Style_Carousel_Square_3x3"
        BasedOn="{StaticResource {Type WrapListBox}}">
        <Setter
            Property="OverrideAcrossNavigation"
            Value="True" />
        <Setter
            Property="Template"
            Value="{StaticResource H_ControlTemplate_Carousel_Default}" />
        <Setter
            Property="ItemContainerStyle"
            Value="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}" />
        <Setter
            Property="ItemTemplate"
            Value="{StaticResource H_DataTemplate_ListItem_TileMenu}" />
        <Setter
            Property="Height"
            Value="468" />
        <Setter
            Property="Width"
            Value="468" />
        <Setter
            Property="ItemWidth"
            Value="156" />
        <Setter
            Property="ItemHeight"
            Value="156" />
        <Setter
            Property="Margin"
            Value="0,0,-4,-4" />
        <Setter
            Property="PageSize"
            Value="9" />
    </Style>
    <Style
        TargetType="WrapListBox"
        x:Key="H_Style_Carousel_Square_10Items"
        BasedOn="{StaticResource {Type WrapListBox}}">
        <Setter
            Property="OverrideAcrossNavigation"
            Value="True" />
        <Setter
            Property="Template"
            Value="{StaticResource H_ControlTemplate_Carousel_Default}" />
        <Setter
            Property="ItemContainerStyle"
            Value="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}" />
        <Setter
            Property="ItemTemplate"
            Value="{StaticResource H_DataTemplate_ListItem_TileMenu}" />
        <Setter
            Property="Height"
            Value="156" />
        <Setter
            Property="Width"
            Value="1560" />
        <Setter
            Property="ItemWidth"
            Value="156" />
        <Setter
            Property="ItemHeight"
            Value="156" />
        <Setter
            Property="Margin"
            Value="0,0,-4,-4" />
        <Setter
            Property="SelectionLimitTop"
            Value="312" />
    </Style>
    <Style
        TargetType="WrapListBox"
        x:Key="H_Style_Carousel_Rectangular_7Items"
        BasedOn="{StaticResource {Type WrapListBox}}">
        <Setter
            Property="OverrideAcrossNavigation"
            Value="True" />
        <Setter
            Property="Template"
            Value="{StaticResource H_ControlTemplate_Carousel_Default}" />
        <Setter
            Property="ItemContainerStyle"
            Value="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}" />
        <Setter
            Property="ItemTemplate"
            Value="{StaticResource H_DataTemplate_ListItem_TileMenu}" />
        <Setter
            Property="Height"
            Value="156" />
        <Setter
            Property="Width"
            Value="1680" />
        <Setter
            Property="ItemWidth"
            Value="240" />
        <Setter
            Property="ItemHeight"
            Value="156" />
        <Setter
            Property="Margin"
            Value="0,0,-4,-4" />
        <Setter
            Property="SelectionLimitTop"
            Value="240" />
    </Style>

    <Style
        TargetType="Control"
        x:Key="H_Style_TemplatedElement_Basket">
        <Style.Resources>
            <ResourceDictionary>
                <ControlTemplate
                    x:Key="H_Template_Basket_Block"
                    TargetType="ContentControl">
                    <FZMaterial
                        Style="{StaticResource H_Style_Container_GlassHighBlur_Description}">
                        <DockPanel>
                            <FZMaterial
                                Width="28"
                                Height="28"
                                VerticalAlignment="Center"
                                Margin="8"
                                ImageSource="{DynamicDataBinding Icon}"
                                Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"
                                DockPanel.Dock="Left" />
                            <FZTextBlock
                                Text="{TemplateBinding Content}"
                                Style="{StaticResource H_Style_Text_DescriptionTitle}"
                                Margin="16,10,16,10"
                                TextAlignment="Right" />
                        </DockPanel>
                    </FZMaterial>
                </ControlTemplate>
            </ResourceDictionary>
        </Style.Resources>
        <Setter
            Property="DataContext"
            Value="{Binding Basket}" />
        <Setter
            Property="Height"
            Value="44" />
        <Setter
            Property="Margin"
            Value="0,4,0,0" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <UniformGrid
                            Rows="1"
                            UIPageTransitionManager.TransitionIndex="1">
                            <ContentControl
                                Template="{StaticResource H_Template_Basket_Block}"
                                Content="{Binding TotalCreditCost, ConverterParameter=money, FallbackValue=0, Converter={NumUnitConverter ShowUnit=False, FractionDigits=0}}"
                                Margin="0,0,2,0"
                                x:Name="Credits">
                                <DynamicData.Data>
                                    <DynamicDataSource>
                                        <DynamicDataItem
                                            Name="Icon"
                                            DataType="String"
                                            Value="/ForzaUI;component/Textures/Anthem/Icons/Garage/Credits.png" />
                                    </DynamicDataSource>
                                </DynamicData.Data>
                            </ContentControl>
                            <UniformGrid
                                Rows="1">
                                <ContentControl
                                    Template="{StaticResource H_Template_Basket_Block}"
                                    Content="{Binding TotalTokenCost, ConverterParameter=tokenmoney, FallbackValue=0, Converter={NumUnitConverter ShowUnit=False, FractionDigits=0}}"
                                    Margin="2,0,2,0"
                                    Visibility="{Binding AreTokensEnabled, Converter={FZBooleanToVisibilityConverter}, Source={StaticResource PART_UISceneContext}}"
                                    x:Name="Tokens">
                                    <DynamicData.Data>
                                        <DynamicDataSource>
                                            <DynamicDataItem
                                                Name="Icon"
                                                DataType="String"
                                                Value="/ForzaUI;component/Textures/Anthem/Icons/Garage/Tokens.png" />
                                        </DynamicDataSource>
                                    </DynamicData.Data>
                                </ContentControl>
                                <ContentControl
                                    Template="{StaticResource H_Template_Basket_Block}"
                                    Content="{Binding BasketItems.Count, FallbackValue=0, Converter={NumUnitConverter ShowUnit=False, FractionDigits=0}}"
                                    Margin="2,0,0,0"
                                    x:Name="Basket">
                                    <DynamicData.Data>
                                        <DynamicDataSource>
                                            <DynamicDataItem
                                                Name="Icon"
                                                DataType="String"
                                                Value="/ForzaUI;component/Textures/Anthem/Icons/Garage/Basket.png" />
                                        </DynamicDataSource>
                                    </DynamicData.Data>
                                </ContentControl>
                            </UniformGrid>
                        </UniformGrid>
                        <EventFire
                            x:Name="EventFire" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger
                            Binding="{Binding Updated}">
                            <DataTrigger.Value>
                                <Boolean>True</Boolean>
                            </DataTrigger.Value>
                            <DataTrigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <StringAnimationUsingKeyFrames
                                            Storyboard.TargetProperty="(EventFire.EventName)"
                                            Storyboard.TargetName="EventFire">
                                            <DiscreteStringKeyFrame
                                                KeyTime="0:0:1.2"
                                                Value="BasketUpdateAnimationComplete" />
                                        </StringAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </DataTrigger.EnterActions>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Int32
        x:Key="H_InvalidCarClassRestriction">-1</Int32>
    <Color
        x:Key="H_Color_CarClassBadge_Unknown">#FF969696</Color>
    <Color
        x:Key="H_Color_CarClassBadge_PIRange">#FF404040</Color>

    <Style x:Key="H_Style_FZTextBlock_CarClassText_Fallback" TargetType="local:FZTextBlock">
        <Setter Property="Text"
                        Value="{Loc CarFlow.IDS_Class_Unknown}" />
    </Style>
    <Style x:Key="H_Style_FZTextBlock_CarClassColor_Fallback" TargetType="local:FZMaterial">
        <Setter Property="Color"
                        Value="{StaticResource H_Color_CarClassBadge_Unknown}" />
    </Style>
    <Style x:Key="H_Style_FZTextBlock_PIText_Fallback" TargetType="local:FZTextBlock">
        <Setter Property="Text"
                        Value="{Loc CarFlow.IDS_PI_Unknown}" />
    </Style>
    <DynamicDataSource x:Key="H_CarClassBadge_Default">
        <DynamicDataItem
                        Name="CarClassText"
                        DataType="Style">
            <Style TargetType="local:FZTextBlock">
                <Setter Property="Text"
                        Value="{Binding (BindingProxy.B), ConverterParameter=string, FallbackValue={Loc CarFlow.IDS_Class_Unknown}, RelativeSource={RelativeSource AncestorType=Control}, Converter={CarClassConverter AllowInvalidClassID=True}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=Control}}" Value="{StaticResource H_InvalidCarClassRestriction}">
                        <Setter Property="Text"
                        Value="{Loc EventBlueprint.IDS_CarClassPI_Pill}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </DynamicDataItem>
        <DynamicDataItem
                        Name="CarClassColor"
                        DataType="Style">
            <Style TargetType="local:FZMaterial">
                <Setter Property="Color"
                        Value="{Binding (BindingProxy.B), ConverterParameter=color, FallbackValue={StaticResource H_Color_CarClassBadge_Unknown}, RelativeSource={RelativeSource AncestorType=Control}, Converter={CarClassConverter AllowInvalidClassID=True}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=Control}}" Value="{StaticResource H_InvalidCarClassRestriction}">
                        <Setter Property="Color"
                        Value="{StaticResource H_Color_CarClassBadge_PIRange}" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </DynamicDataItem>
        <DynamicDataItem
                        Name="PIText"
                        DataType="Style">
            <Style TargetType="local:FZTextBlock">
                <Setter Property="Text"
                        Value="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}, Converter={PIConverter}, FallbackValue={Loc CarFlow.IDS_PI_Unknown}}" />
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}, Converter={StaticResource A_CompareConverter}, ConverterParameter=1}" Value="{x:Static local:CompareResult.GreaterThan}">
                        <Setter Property="Text" Value="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}, Converter={NumUnitConverter FractionDigits=0}}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding (BindingProxy.B), RelativeSource={RelativeSource AncestorType=Control}}" Value="{StaticResource H_InvalidCarClassRestriction}">
                        <Setter Property="MultiStringFormatter.Format" Value="{Loc CarFlow.IDS_PIRange_Format}"/>
                        <Setter Property="MultiStringFormatter.Param0" Value="{Binding (BindingProxy.C), RelativeSource={RelativeSource AncestorType=Control}, Converter={NumUnitConverter FractionDigits=0}}" />
                        <Setter Property="MultiStringFormatter.Param1" Value="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=Control}, Converter={NumUnitConverter FractionDigits=0}}" />
                        <Setter Property="Text" Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}, FallbackValue={Loc CarFlow.IDS_PI_Unknown}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </DynamicDataItem>
    </DynamicDataSource>
    <Double x:Key="A_Double_NotificationPopup_WidthForPIRange">125</Double>
    <Style
        x:Key="H_Style_TemplatedElement_CarClassBadge"
        TargetType="{Type Control}">
        <Style.Resources>
            <ControlTemplate
                x:Key="H_ControlTemplate_CarClassBadge_Default" 
                TargetType="Control">
                <Grid>
                    <FZMaterial 
                        Style="{Binding (DynamicData.Data).CarClassColor, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassColor_Fallback}}"
                        Preset="{Roundtangle CornerRadius=2}"/>
                    <DockPanel>
                        <Viewbox DockPanel.Dock="Left"
                                MaxWidth="infinity"
                                Stretch="Uniform">
                            <Decorator Width="34" Height="30">
                                <FZTextBlock
                                    FontFamily="Horizon_C"
                                    Style="{DynamicDataBinding CarClassText, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassText_Fallback}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    TextAlignment="Center"
                                    CapHeight="16"
                                    Color="{StaticResource H_Color_Primary_White}" />
                            </Decorator>
                        </Viewbox>
                        <Viewbox Stretch="Uniform"
                                Margin="0,2,2,2"
                            MaxWidth="infinity">
                            <FZMaterial 
                                Color="{StaticResource H_Color_Primary_Black}"
                                MinWidth="53" Height="30">
                                <FZTextBlock 
                                    Style="{Binding (DynamicData.Data).PIText, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_PIText_Fallback}}"
                                    Color="{StaticResource H_Color_Primary_White}"
                                    FontFamily="Horizon_A"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    CapHeight="16"
                                    Margin="4,0" />
                            </FZMaterial>
                        </Viewbox>
                    </DockPanel>
                </Grid>
            </ControlTemplate>
        </Style.Resources>
        <Setter
            Property="Height"
            Value="40" />
        <Setter
            Property="Tag"
            Value="{Null}" />
        <Setter
            Property="DynamicData.Data" Value="{StaticResource H_CarClassBadge_Default}"/>
        <Setter Property="Template"
                Value="{StaticResource H_ControlTemplate_CarClassBadge_Default}"/>
    </Style>
    <Style
        x:Key="H_Style_TemplatedElement_CarClassBadgeOnly"
        TargetType="{Type Control}">
        <Style.Resources>
            <ControlTemplate
                x:Key="H_ControlTemplate_CarClassBadge_Default_OnlyClass" 
                TargetType="Control">
                <Grid>
                    <FZMaterial 
                        Style="{Binding (DynamicData.Data).CarClassColor, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassColor_Fallback}}"
                        Preset="{Roundtangle CornerRadius=0}"/>
                    <Viewbox MaxWidth="infinity"
                             Stretch="Uniform">
                        <Decorator Width="34" Height="34">
                            <FZTextBlock
                                    FontFamily="Horizon_C"
                                    Style="{DynamicDataBinding CarClassText, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassText_Fallback}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    TextAlignment="Center"
                                    CapHeight="16"
                                    Color="{StaticResource H_Color_Primary_White}" />
                        </Decorator>
                    </Viewbox>
                </Grid>
            </ControlTemplate>
        </Style.Resources>
        <Setter
            Property="Height"
            Value="40" />
        <Setter
            Property="Tag"
            Value="{Null}" />
        <Setter
            Property="DynamicData.Data" Value="{StaticResource H_CarClassBadge_Default}"/>
        <Setter Property="Template"
                Value="{StaticResource H_ControlTemplate_CarClassBadge_Default_OnlyClass}"/>
    </Style>
    <Style
        x:Key="H_Style_TemplatedElement_CarClassBadgeBox"
        TargetType="{Type Control}">
        <Setter
            Property="Height"
            Value="70" />
        <Setter
            Property="Tag"
            Value="{Null}" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <Grid>
                        <FZMaterial
                            Height="70"
                            Width="50"
                            Style="{Binding (DynamicData.Data).CarClassColor, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassColor_Fallback}}"
                            Preset="{StaticResource H_Roundtangle_Outer_1px}"/>
                        <Grid
                            Height="70"
                            Width="50">
                            <FZTextBlock
                                FontFamily="Horizon_A"
                                Style="{Binding (DynamicData.Data).CarClassText, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_CarClassText_Fallback}}"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Top"
                                CapHeight="24"
                                Margin="0,8,0,0"
                                Color="{StaticResource H_Color_Primary_White}" />
                            <FZMaterial
                                Width="46"
                                Height="26"
                                Color="{StaticResource H_Color_Primary_Black}"
                                Preset="{StaticResource H_Roundtangle_BottomOnly_1px}"
                                VerticalAlignment="Bottom"
                                HorizontalAlignment="Center"
                                Margin="2,0,2,2">
                                <FZTextBlock
                                    FontFamily="Horizon_B"
                                    Style="{Binding (DynamicData.Data).PIText, RelativeSource={RelativeSource AncestorType=Control}, FallbackValue={StaticResource H_Style_FZTextBlock_PIText_Fallback}}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    CapHeight="18"
                                    Color="{StaticResource H_Color_Primary_White}" />
                            </FZMaterial>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="DynamicData.Data" Value="{StaticResource H_CarClassBadge_Default}"/>
    </Style>
    <Style
        x:Key="H_Style_TemplatedElement_CarClassBadge_White"
        TargetType="{Type Control}"
        BasedOn="{StaticResource H_Style_TemplatedElement_CarClassBadge}">
        <Setter
            Property="Tag"
            Value="White" />
    </Style>
    <Style x:Key="A_Style_ContentControl_TextNotification" TargetType="ContentControl">
        <Setter Property="Height" Value="30" />
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <FZMaterial Color="{StaticResource H_Color_Primary_Black}"
                                    Opacity="0.2"
                                    Margin="0,0,-2,-2">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangle
                                    Unlit="True" 
                                    CornerRadius="{StaticResource H_CornerRadius_All_2px}"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                        <FZMaterial Color="{StaticResource H_Color_Primary_Yellow}"
                                    Preset="{StaticResource H_Roundtangle_Outer_2px}">
                            <FZTextBlock FontFamily="Horizon_A"
                                         Color="{StaticResource H_Color_Primary_Black}"
                                         CapHeight="16"
                                         Margin="6,0"
                                         TextAlignment="Center"
                                         HorizontalAlignment="Center"
                                         VerticalAlignment="Center" 
                                         Text="{Loc UINotifications.IDS_NewModes}"/>
                        </FZMaterial>
                        <FZMaterial Color="{StaticResource H_Color_Primary_Black}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangleStroke 
                                    CornerRadius="{StaticResource H_CornerRadius_All_2px}"
                                    Thickness="2"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                    </Grid>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <CornerRadius x:Key="A_Preset_CornerRadius_Divider">2,2,2,2</CornerRadius>
    <DataTemplate x:Key="H_Template_NotificationBadge_Content">
        <FZTextBlock
            Text="{Binding}"
            FontFamily="Horizon_A"
            Color="{StaticResource H_Color_Primary_Black}"
            CapHeight="14"
            Margin="6,0"
            TextAlignment="Center"
            HorizontalAlignment="Center"
            VerticalAlignment="Center" />
    </DataTemplate>

    <Style
        x:Key="H_Style_NotificationBadge"
        TargetType="{Type ContentControl}">
        <Setter
            Property="Visibility"
            Value="{Binding Content, RelativeSource={RelativeSource Self}, Converter={StringVisConverter}}" />
        <Setter
            Property="Height"
            Value="30" />
        <Setter Property="MinWidth"
            Value="{Binding ActualHeight, RelativeSource={RelativeSource Self}}" />
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="IsHitTestVisible"
            Value="False" />
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_NotificationBadge_Content}" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <FZMaterial Width="{TemplateBinding Width}"
                                    Height="{TemplateBinding Height}"
                                    Color="{StaticResource H_Color_Primary_Black}"
                                    Opacity="0.2"
                                    Margin="2,2,-2,-2">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangle
                                    Unlit="True" 
                                    CornerRadius="{Binding ActualHeight, Converter={MathOperationConverter Operation=Divide}, 
                                                  ConverterParameter={StaticResource A_Preset_CornerRadius_Divider}, 
                                                  RelativeSource={RelativeSource AncestorType=FZMaterial}}"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                        <FZMaterial Color="{StaticResource H_Color_Primary_Yellow}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangle CornerRadius="{Binding ActualHeight, Converter={MathOperationConverter Operation=Divide}, 
                                                                        ConverterParameter={StaticResource A_Preset_CornerRadius_Divider}, 
                                                                        RelativeSource={RelativeSource AncestorType=FZMaterial}}"/>
                            </FZMaterial.Preset>
                            <ContentPresenter />
                        </FZMaterial>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger
                Property="IsEnabled"
                Value="False">
                <Setter
                    Property="Visibility"
                    Value="Collapsed" />
            </Trigger>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <DataTemplate x:Key="H_Template_NotificationBadgeSquare_Content">
        <FZTextBlock
            Text="{Binding}"
            FontFamily="Horizon_A"
            Color="{StaticResource H_Color_Primary_Yellow}"
            CapHeight="14"
            Margin="3,0"
            TextAlignment="Center"
            HorizontalAlignment="Center"
            VerticalAlignment="Center" />
    </DataTemplate>
    <Style
        x:Key="H_Style_NotificationBadge_Square"
        BasedOn="{StaticResource H_Style_NotificationBadge}"
        TargetType="{Type ContentControl}">
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_NotificationBadgeSquare_Content}" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid>
                        <FZMaterial Width="{TemplateBinding Width}"
                                    Height="{TemplateBinding Height}"
                                    Color="{StaticResource H_Color_Primary_Black}"
                                    Opacity="0.2"
                                    Margin="2,2,-2,-2">
                        </FZMaterial>
                        <FZMaterial Color="{StaticResource H_Color_Primary_Black}">
                            <ContentPresenter />
                        </FZMaterial>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="H_Style_NotificationBadge_Tile_Button"
           TargetType="{Type ContentControl}"
           BasedOn="{StaticResource H_Style_NotificationBadge}">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding (Grid.RowSpan), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}" Value="1">
                <Setter Property="VerticalAlignment" Value="Center" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    
    <Style
        TargetType="FZMaterial"
        x:Key="H_Style_ScrollPageArrow">
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Width"
            Value="20" />
        <Setter
            Property="Height"
            Value="20" />
        <Setter
            Property="Visibility"
            Value="{Binding IsControllerActiveInput, Converter={FZBooleanToVisibilityConverter InvertResult=True}}" />
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_Black}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding IsPressed, RelativeSource={RelativeSource AncestorType=Button}}"
                Value="True">
                <Setter
                    Property="Color"
                    Value="{StaticResource H_Color_Primary_Pink}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding (DynamicData.Data).IsControllerVisualsDisabled, RelativeSource={RelativeSource Self}}" Value="True">
                <Setter Property="Visibility"
                        Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style
        x:Key="H_Style_TemplatedElement_Empty"
        TargetType="Control">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate />
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="H_Style_MotionBlurScrollPanel"
        TargetType="{Type VirtualizingScrollPanel}">
        <Setter
            Property="Effect">
            <Setter.Value>
                <MotionBlurEffect />
            </Setter.Value>
        </Setter>
        <Setter
            Property="MotionBlurEffect.MotionBlurPositionXControl"
            Value="{Binding VisualOffset, RelativeSource={RelativeSource Self}}" />
        <Setter
            Property="ClipToBounds"
            Value="True" />
        <Setter
            Property="KeyboardNavigation.DirectionalNavigation"
            Value="Contained" />
        <Setter
            Property="IsItemsHost"
            Value="True" />
        <Setter
            Property="SlideDuration"
            Value="0:0:0.267" />
        <Setter
            Property="FocusItemIndex"
            Value="1" />
        <Setter
            Property="EmptyItemStyle"
            Value="{StaticResource H_Style_TemplatedElement_Empty}" />
    </Style>
    <Double
        x:Key="H_Height_TabBar">38</Double>
    <Thickness x:Key="H_Margin_ScrollingTabBar">0,30</Thickness>
    <Double
        x:Key="H_Height_TabBarWithScrollingMargins">98</Double>
    <Double
        x:Key="H_CapHeight_TabBar">18</Double>
    <Style
        x:Key="H_Style_TabButton_SharedNextOrPrevious"
        TargetType="{Type FZButton}">
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="MinWidth"
            Value="{Binding (DynamicData.Data).NextOrPreviousWidth, FallbackValue=52, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
        <Setter
            Property="Height"
            Value="{Binding (DynamicData.Data).NextOrPreviousHeight, FallbackValue={StaticResource H_Height_TabBar}, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type FZButton}">
                    <FZMaterial
                        x:Name="Background"
                        Color="{StaticResource H_Color_Glass_Purple_40pc}">
                        <FZMaterial.Preset>
                            <FZMaterialPresetGlassRoundtangle
                                BlurAmount="High"
                                CornerRadius="{Binding (DynamicData.Data).MouseRolloverCornerRadius, FallbackValue=1, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
                        </FZMaterial.Preset>
                        <Grid>
                            <Control
                                Style="{StaticResource H_Style_TemplatedElement_MouseRollover}" />
                            <FZTextBlock
                                Color="{StaticResource H_Color_Primary_White}"
                                CapHeight="{StaticResource H_CapHeight_TabBar}"
                                FontFamily="Horizon_A"
                                Text="{TemplateBinding Content}"
                                TextWrapping="NoWrap"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                Opacity="1"
                                x:Name="Textblock_Title"
                                Visibility="{Binding IsControllerActiveInput, Converter={FZBooleanToVisibilityConverter}}" />
                            <FZMaterial
                                ImageSource="{DynamicDataBinding TabArrowPath}"
                                Style="{Binding (DynamicData.Data).ArrowStyle, FallbackValue={StaticResource H_Style_ScrollPageArrow}, RelativeSource={RelativeSource AncestorType=FrameworkElement}}"
                                x:Name="Arrow_Title" />
                        </Grid>
                    </FZMaterial>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding (DynamicData.Data).IsControllerVisualsDisabled, RelativeSource={RelativeSource Self}}"
                                     Value="True">
                            <Setter TargetName="Textblock_Title"
                                    Property="Visibility"
                                    Value="Collapsed"/>
                        </DataTrigger>
                        <DataTrigger
                            Binding="{Binding IsPC, Source={StaticResource PART_UISceneContext}}"
                            Value="True">
                            <Setter
                                TargetName="Background"
                                Property="Color"
                                Value="{Binding (DynamicData.Data).PCBackgroundColor, FallbackValue={StaticResource H_Color_Primary_White}, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
                            <Setter
                                TargetName="Background"
                                Property="Preset">
                                <Setter.Value>
                                    <FZMaterialPresetRoundtangle
                                        CornerRadius="{Binding (DynamicData.Data).MouseRolloverCornerRadius, FallbackValue=1, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
                                </Setter.Value>
                            </Setter>
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Opacity"
                                Value="1" />
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Color"
                                Value="{Binding (DynamicData.Data).PCTextColor, FallbackValue={StaticResource H_Color_Primary_Black}, RelativeSource={RelativeSource AncestorType=FrameworkElement}}" />
                        </DataTrigger>
                        <Trigger
                            Property="IsEnabled"
                            Value="False">
                            <Setter
                                TargetName="Background"
                                Property="Preset">
                                <Setter.Value>
                                    <FZMaterialPresetGlassRoundtangle
                                        BlurAmount="High"
                                        CornerRadius="{Binding (DynamicData.Data).MouseRolloverCornerRadius, ElementName=Background, FallbackValue=1}" />
                                </Setter.Value>
                            </Setter>
                            <Setter
                                TargetName="Background"
                                Property="Color"
                                Value="{StaticResource H_Color_Glass_Purple_20pc}" />
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Opacity"
                                Value="0.6" />
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                            <Setter
                                TargetName="Arrow_Title"
                                Property="Opacity"
                                Value="0.6" />
                            <Setter
                                TargetName="Arrow_Title"
                                Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="H_Style_TabButton_Previous"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_TabButton_SharedNextOrPrevious}">
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (AttachedTileMenu.TileMenuNavigationManager).PrevGroupCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                Value="{Null}">
                <Setter
                    Property="Command"
                    Value="{Binding ScrollPagePrevCommand, RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
                <Setter
                    Property="OnClickSoundName"
                    Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_ChangeTab_01" />
                <Setter
                    Property="IsEnabled"
                    Value="{Binding CanSelectPrev, RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
            </DataTrigger>
        </Style.Triggers>
        <Setter
            Property="Command"
            Value="{Binding (AttachedTileMenu.TileMenuNavigationManager).PrevGroupCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
        <Setter
            Property="OnClickSoundName"
            Value="" />
        <Setter
            Property="Margin"
            Value="0,0,4,0" />
        <Setter
            Property="Content"
            Value="LB" />
        <Setter
            Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem
                        Name="MouseRolloverCornerRadius"
                        DataType="CornerRadius"
                        Value="1,0,0,1" />
                    <DynamicDataItem
                        Name="TabArrowPath"
                        DataType="String"
                        Value="/ForzaUI;component/Textures/Anthem/Icons/scroll_page_arrow_left_small.png" />
                    <DynamicDataItem Name="IsControllerVisualsDisabled"
                                     DataType="Boolean"
                                     Value="False" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="H_Style_TabButton_Next"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_TabButton_SharedNextOrPrevious}">
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (AttachedTileMenu.TileMenuNavigationManager).NextGroupCommand, RelativeSource={RelativeSource AncestorType=Page}}"
                Value="{Null}">
                <Setter
                    Property="Command"
                    Value="{Binding ScrollPageNextCommand, RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
                <Setter
                    Property="OnClickSoundName"
                    Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_ChangeTab_01" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding (AttachedTileMenu.TileMenuNavigationManager).CanSelectNextGroup, RelativeSource={RelativeSource AncestorType=Page}}"
                Value="{Null}">
                <Setter
                    Property="IsEnabled"
                    Value="{Binding CanSelectNext, RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
            </DataTrigger>
        </Style.Triggers>
        <Setter
            Property="Command"
            Value="{Binding (AttachedTileMenu.TileMenuNavigationManager).NextGroupCommand, RelativeSource={RelativeSource AncestorType=Page}}" />
        <Setter
            Property="IsEnabled"
            Value="{Binding (AttachedTileMenu.TileMenuNavigationManager).CanSelectNextGroup, RelativeSource={RelativeSource AncestorType=Page}}" />
        <Setter
            Property="OnClickSoundName"
            Value="" />
        <Setter
            Property="Margin"
            Value="4,0,0,0" />
        <Setter
            Property="Content"
            Value="RB" />
        <Setter
            Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem
                        Name="MouseRolloverCornerRadius"
                        DataType="CornerRadius"
                        Value="0,1,1,0" />
                    <DynamicDataItem
                        Name="TabArrowPath"
                        DataType="String"
                        Value="/ForzaUI;component/Textures/Anthem/Icons/scroll_page_arrow_right_small.png" />
                    <DynamicDataItem Name="IsControllerVisualsDisabled"
                                     DataType="Boolean"
                                     Value="False" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="H_Style_TabButton_CustomIcon_Hidden"
           TargetType="{Type FZMaterial}">
        <Setter Property="Visibility" Value="Collapsed"/>
    </Style>

    <Style
        x:Key="H_Style_TabButton_Empty"
        TargetType="{Type ContentControl}">
        <Setter
            Property="IsEnabled"
            Value="True" />
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter Property="BindingProxy.A"
                Value="{StaticResource H_Style_TabButton_CustomIcon_Hidden}" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type ContentControl}">
                    <Grid x:Name="ScalableContents">
                        <FrameworkElement x:Name="selected_right_divider_triggerer"
                            MultiDataConversion.Value="{Binding SelectedIndex, RelativeSource={RelativeSource AncestorType=ItemsSelector}, Converter={LinearTransformConverter Add=1}}"
                            MultiDataConversion.Parameter="{Binding (ItemsSelector.AlternationIndex), RelativeSource={RelativeSource TemplatedParent}}"
                            MultiDataConversion.Converter="{CompareConverter}"
                            MultiDataConversion.TargetType="Int32" />

                        <Grid>
                            <FZMaterial x:Name="SelectedShadow"
                                Style="{StaticResource H_Style_Selected_Shadow}"
                                ZPanel.DisableClipping="True" />
                            <FZMaterial
                                x:Name="Divider"
                                Panel.ZIndex="2"
                                Color="{StaticResource H_Color_TabBar_Divider}"
                                Width="2"
                                HorizontalAlignment="Left" />
                            <FZMaterial
                                x:Name="Background"
                                Color="{StaticResource H_Color_TabBar_Button}">
                                <ContentPresenter
                                    x:Name="Contents" />
                            </FZMaterial>
                            <FZMaterial x:Name="Highlight"
                                Color="{StaticResource H_Color_TabBar_Button_Highlight_Outer}"
                                Height="4"
                                VerticalAlignment="Bottom"
                                Visibility="Collapsed"/>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="Selector.IsSelected"
                            Value="True">
                            <Setter
                                TargetName="Background"
                                Property="Color"
                                Value="{StaticResource H_Color_TabBar_Button_Highlight_Inner}" />
                            <Setter
                                TargetName="Divider"
                                Property="Visibility"
                                Value="Collapsed" />
                            <Setter
                                TargetName="Highlight"
                                Property="Visibility"
                                Value="Visible" />
                            <Setter
                                TargetName="SelectedShadow"
                                Property="Opacity"
                                Value="0.8" />
                        </Trigger>
                        <Trigger
                            Property="ItemsSelector.AlternationIndex"
                            Value="0">
                            <Setter
                                TargetName="Divider"
                                Property="Visibility"
                                Value="Collapsed" />
                        </Trigger>
                        <DataTrigger
                            Binding="{Binding (MultiDataConversion.Output), ElementName=selected_right_divider_triggerer}"
                            Value="{x:Static CompareResult.Equal}">
                            <Setter
                                TargetName="Divider"
                                Property="Visibility"
                                Value="Collapsed" />
                        </DataTrigger>
                        <Trigger
                            Property="Content"
                            Value="{Null}">
                            <Setter
                                Property="IsEnabled"
                                Value="False" />
                        </Trigger>
                        <Trigger
                            Property="TileMenuNavigationManager.TileState"
                            Value="{x:Static TileState.Disabled}">
                            <Setter
                                Property="IsEnabled"
                                Value="False" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate />
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource Self}}" Value="True"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="Panel.ZIndex"
                    Value="1"/>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>
    
    <Style
        x:Key="H_Style_TabButton_Empty_Scrolling"
        TargetType="{Type ContentControl}"
        BasedOn="{StaticResource H_Style_TabButton_Empty}">
        <Setter Property="Margin" Value="{StaticResource H_Margin_ScrollingTabBar}"/>
    </Style>

    <AutoScrollSettings x:Key="A_AutoScrollSettings_TabBarOptions" 
        ScrollSeparation="60"
        ScrollOrientation="Horizontal"
        Speed="30"
        InitialPause="0:0:0.5"/>

    <Style
        x:Key="H_Style_TabButton_NonInteractive"
        TargetType="{Type ContentControl}"
        BasedOn="{StaticResource H_Style_TabButton_Empty}">
        <Setter
            Property="Content"
            Value="{Binding Title}" />
        <Setter
            Property="Tag"
            Value="{Binding NumUnread}" />
        <Setter
            Property="MinWidth"
            Value="100" />
        <Setter
            Property="MaxWidth"
            Value="300" />
        <Setter
            Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <DockPanel HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Margin="24,10,24,9"> 
                            <FZMaterial
                                DockPanel.Dock="Left"
                                x:Name="lock_icon"
                                Visibility="Collapsed"
                                VerticalAlignment="Center"
                                Width="20"
                                Stretch="UniformToFill"
                                Color="{StaticResource H_Color_TabBar_DisabledContent}"
                                ImageSource="game:\Media\UI\Textures\Data_Bound\ui_symbols\Tab_Lock_Icon.png"/>
                            <FZMaterial
                                x:Name="custom_icon"
                                DockPanel.Dock="Right"
                                VerticalAlignment="Center"
                                Style="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType={Type FZButton}}}"/>
                                <!--Set BindingProxy.A on the button style to show custom images in tab selection--> 
                            <FZTextBlock
                                Color="{StaticResource H_Color_Primary_Black}"
                                CapHeight="{StaticResource H_CapHeight_TabBar}"
                                Stretch="None"
                                FontFamily="Horizon_A"
                                AutoScroll.AllowScrolling="False"
                                AutoScroll="{StaticResource A_AutoScrollSettings_TabBarOptions}"
                                TextTrimming="CharacterEllipsis"
                                Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StringToUpper}}"
                                TextWrapping="NoWrap"
                                Margin="4,0"
                                VerticalAlignment="Center"
                                x:Name="Textblock_Title"
                                ScreenReader.Event="OnChange"
                                ScreenReader.LineType="SelectedGroup"
                                ScreenReader.SelectedNumber="{Binding (ScreenReader.SelectedNumber), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}"
                                ScreenReader.SelectedCount="{Binding (ScreenReader.SelectedCount), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}" />
                        </DockPanel>
                        <Control
                            x:Name="MouseRollover"
                            Style="{StaticResource H_Style_TemplatedElement_MouseRollover}">
                            <DynamicData.Data>
                                <DynamicDataSource>
                                    <DynamicDataItem
                                        Name="MouseRolloverCornerRadius"
                                        DataType="CornerRadius"
                                        Value="0" />
                                    <DynamicDataItem
                                        Name="MouseRolloverDisableWhenSelected"
                                        DataType="Boolean"
                                        Value="True" />
                                </DynamicDataSource>
                            </DynamicData.Data>
                        </Control>
                        <Grid
                            IsHitTestVisible="False"
                            x:Name="BadgeContainer">
                            <Grid.RowDefinitions>
                                <RowDefinition
                                    Height="0.05*" />
                                <RowDefinition
                                    Height="0.95*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition
                                    Width="6" />
                                <ColumnDefinition
                                    Width="*" />
                                <ColumnDefinition
                                    Width="6" />
                            </Grid.ColumnDefinitions>
                            <ContentControl
                                Content="{Binding Tag, RelativeSource={RelativeSource AncestorType={Type FZButton}}}"
                                Style="{StaticResource H_Style_NotificationBadge}"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Bottom"
                                Margin="0,-250,0,0"
                                Grid.Row="0"
                                Grid.Column="1"
                                x:Name="Badge" />
                        </Grid>
                    </Grid>
                    <DataTemplate.Triggers>
                        <Trigger
                            Property="IsEnabled"
                            Value="False">
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Color"
                                Value="{StaticResource H_Color_TabBar_DisabledContent}" />
                            <Setter
                                TargetName="lock_icon"
                                Property="Visibility"
                                Value="Visible" />
                        </Trigger>
                        <DataTrigger
                            Binding="{Binding (Selector.IsSelected), FallbackValue=False, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                            Value="True">
                            <Setter
                                TargetName="Textblock_Title"
                                Property="Color"
                                Value="{StaticResource H_Color_Primary_White}" />
                            <Setter
                                TargetName="Textblock_Title"
                                Property="ScreenReader.Line"
                                Value="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
                            <Setter 
                                TargetName="Textblock_Title"
                                Property="AutoScroll.AllowScrolling"
                                Value="True"/>
                            <Setter 
                                TargetName="Textblock_Title"
                                Property="TextTrimming"
                                Value="None"/>
                        </DataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="H_Style_TabButton"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_TabButton_NonInteractive}">
        <Style.Triggers>
            <Trigger
                Property="Selector.IsSelected"
                Value="False">
                <Setter
                    Property="Command"
                    Value="{Binding (AttachedTileMenu.TileMenuNavigationManager).SelectGroup, RelativeSource={RelativeSource AncestorType=Page}}" />
                <Setter
                    Property="CommandParameter"
                    Value="{Null}" />
                <Setter
                    Property="UseSelfAsDefaultCommandParameter"
                    Value="True" />
            </Trigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding (Selector.IsSelected), RelativeSource={RelativeSource Self}}"
                        Value="False" />
                    <Condition
                        Binding="{Binding (AttachedTileMenu.TileMenuNavigationManager).SelectGroup, RelativeSource={RelativeSource AncestorType=Page}}"
                        Value="{Null}" />
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="Command"
                    Value="{Binding OnItemLeftMouseUp, RelativeSource={RelativeSource AncestorType=Selector}}" />
                <Setter
                    Property="CommandParameter"
                    Value="{Binding}" />
                <Setter
                    Property="UseSelfAsDefaultCommandParameter"
                    Value="False" />
                <Setter
                    Property="OnClickSoundName"
                    Value="/Master/UI/PauseMenu/HZ2_SFX_UI_PauseMenu_ChangeTab_01" />
            </MultiDataTrigger>
            <Trigger
                Property="IsEnabled"
                Value="True">
                <Setter
                    Property="AccumulateSelfOnParent.ParentType"
                    Value="{Type ItemsSelector}" />
                <Setter
                    Property="AccumulateSelfOnParent.SortOrder"
                    Value="{Binding (ItemsControl.AlternationIndex), FallbackValue=0, RelativeSource={RelativeSource Self}}" />
            </Trigger>
            <DataTrigger
                Binding="{Binding Index, FallbackValue=0, Converter={StaticResource H_IndexToNumberConverter}}"
                Value="0">
                <Setter
                    Property="ScreenReader.SelectedNumber"
                    Value="{Binding (ItemsControl.AlternationIndex), FallbackValue=0, RelativeSource={RelativeSource Self}, Converter={StaticResource H_IndexToNumberConverter}}" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding (AccumulateSelfOnParent.Output), FallbackValue=False, RelativeSource={RelativeSource AncestorType=ItemsSelector}, Converter={StaticResource H_TrueIfNotNull}}"
                        Value="True" />
                    <Condition
                        Binding="{Binding Index, FallbackValue=0, Converter={StaticResource H_IndexToNumberConverter}}"
                        Value="0" />
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="FindSelfIndexInCollection.Collection"
                    Value="{Binding (AccumulateSelfOnParent.Output), RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
                <Setter
                    Property="ScreenReader.SelectedNumber"
                    Value="{Binding (FindSelfIndexInCollection.Index), RelativeSource={RelativeSource Self}, Converter={StaticResource H_IndexToNumberConverter}}" />
                <Setter
                    Property="ScreenReader.SelectedCount"
                    Value="{Binding (AccumulateSelfOnParent.Output).Count, RelativeSource={RelativeSource AncestorType=ItemsSelector}}" />
            </MultiDataTrigger>
        </Style.Triggers>
        <Setter
            Property="ScreenReader.SelectedNumber"
            Value="{Binding Index, FallbackValue=0, Converter={StaticResource H_IndexToNumberConverter}}" />
        <Setter
            Property="ScreenReader.SelectedCount"
            Value="{Binding Items.Count, FallbackValue=0, RelativeSource={RelativeSource AncestorType={Type ItemsControl}}}" />
    </Style>
    <Style x:Key="H_Style_TabButton_Scrolling"
           TargetType="{Type FZButton}"
           BasedOn="{StaticResource H_Style_TabButton}">
        <Setter Property="Margin" Value="{StaticResource H_Margin_ScrollingTabBar}"/>
    </Style>
    <Style
        x:Key="H_Style_TabBar_Base"
        TargetType="ItemsSelector">
        <Setter
            Property="FocusVisualStyle"
            Value="{Null}" />
        <Setter
            Property="ItemContainerStyle"
            Value="{StaticResource H_Style_TabButton}" />
        <Setter
            Property="Height"
            Value="{StaticResource H_Height_TabBar}" />
        <Setter
            Property="MaxWidth"
            Value="1740" />
        <Setter
            Property="Margin"
            Value="0, 0, 0, 8" />
        <Setter
            Property="AlternationCount"
            Value="{x:Static Int32.MaxValue}" />
        <Setter
            Property="PageSize"
            Value="1" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="{Binding HorizontalAlignment, RelativeSource={RelativeSource Self}}" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="Visibility"
            Value="{Binding Items.Count, FallbackValue=Collapsed, RelativeSource={RelativeSource Self}, Converter={StaticResource H_CollapseIfZeroOrOne}}" />
        <Setter
            Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <StackPanel
                        Orientation="Horizontal"
                        Focusable="False"
                        FocusManager.IsFocusScope="True"
                        x:Name="PART_MenuGroups" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ItemsSelector">
                    <Grid
                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                        <DockPanel
                            x:Name="TabPanel"
                            Height="{DynamicDataBinding TabHeight, FallbackValue={StaticResource H_Height_TabBar}}"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Top"
                            Focusable="False">
                            <FZButton
                                DockPanel.Dock="Left"
                                Style="{StaticResource H_Style_TabButton_Previous}" />
                            <FZButton
                                DockPanel.Dock="Right"
                                Style="{StaticResource H_Style_TabButton_Next}" />
                            <Grid HorizontalAlignment="Stretch">
                                <FZMaterial Color="{StaticResource H_Color_Primary_Black}" Opacity="0.15"/>
                                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                    <ContentControl
                                        x:Name="LoadingPanel"
                                        Content="{Loc MessageCenter.IDS_RetrievingData}"
                                        Style="{StaticResource H_Style_TabButton_NonInteractive}"
                                        IsEnabled="False" />
                                    <ItemsPresenter
                                        x:Name="PART_MenuGroupsPresenter" />
                                </StackPanel>
                            </Grid>
                        </DockPanel>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="HasItems"
                            Value="true">
                            <Setter
                                TargetName="LoadingPanel"
                                Property="Visibility"
                                Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="H_Style_TabBar_Internal"
        BasedOn="{StaticResource H_Style_TabBar_Base}"
        TargetType="ItemsSelector">
        <Setter
            Property="SelectedIndex"
            Value="0" />
    </Style>

    <Color x:Key="A_Color_IconBlack">#000000</Color>

    <Style x:Key="H_Style_TabButton_SquareIcons"
                   TargetType="{Type FZButton}"
                   BasedOn="{StaticResource H_Style_TabButton}">
        <Setter Property="Content"
                Value="{Binding IconPath}" />
        <Setter Property="MinWidth" Value="{DynamicDataBinding ButtonWidth, FallbackValue=60}" />
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Grid>
                        <FZMaterial Color="{DynamicDataBinding IconColor, FallbackValue={StaticResource A_Color_IconBlack}}"
                                    Stretch="Uniform"
                                    ImageSource="{Binding Content, RelativeSource={RelativeSource AncestorType={Type FZButton}}}"
                                    VerticalAlignment="Center"
                                    Width="{DynamicDataBinding IconWidth, FallbackValue=40}"
                                    Height="{DynamicDataBinding IconHeight, FallbackValue=40}"
                                    x:Name="Icon_Title"
                                    ScreenReader.Event="OnChange"
                                    ScreenReader.LineType="SelectedGroup"
                                    ScreenReader.SelectedNumber="{Binding (ScreenReader.SelectedNumber), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}"
                                    ScreenReader.SelectedCount="{Binding (ScreenReader.SelectedCount), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}" />
                        <Control x:Name="MouseRollover"
                                 Style="{StaticResource H_Style_TemplatedElement_MouseRollover}">
                            <DynamicData.Data>
                                <DynamicDataSource>
                                    <DynamicDataItem
                                                Name="MouseRolloverCornerRadius"
                                                DataType="CornerRadius"
                                                Value="0" />
                                     <DynamicDataItem
                                                Name="MouseRolloverDisableWhenSelected"
                                                DataType="Boolean"
                                                Value="True" />
                                </DynamicDataSource>
                            </DynamicData.Data>
                        </Control>
                        <Grid
                                    IsHitTestVisible="False"
                                    x:Name="BadgeContainer">
                            <Grid.RowDefinitions>
                                <RowDefinition
                                            Height="0.05*" />
                                <RowDefinition
                                            Height="0.95*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition
                                            Width="6" />
                                <ColumnDefinition
                                            Width="*" />
                                <ColumnDefinition
                                            Width="6" />
                            </Grid.ColumnDefinitions>
                            <ContentControl
                                        Content="{Binding Tag, RelativeSource={RelativeSource AncestorType={Type FZButton}}}"
                                        Style="{StaticResource H_Style_NotificationBadge}"
                                        HorizontalAlignment="Right"
                                        VerticalAlignment="Bottom"
                                        Margin="0,-250,0,0"
                                        Grid.Row="0"
                                        Grid.Column="1"
                                        x:Name="Badge" />
                        </Grid>
                    </Grid>
                    <DataTemplate.Triggers>
                        <Trigger
                                    Property="IsEnabled"
                                    Value="False">
                            <Setter
                                        TargetName="Icon_Title"
                                        Property="Color"
                                        Value="{StaticResource H_Color_Primary_White}" />
                            <Setter
                                        TargetName="Icon_Title"
                                        Property="Opacity"
                                        Value="0.6" />
                        </Trigger>
                        <DataTrigger
                                    Binding="{Binding (Selector.IsSelected), FallbackValue=False, RelativeSource={RelativeSource AncestorType=ContentControl}}"
                                    Value="True">
                            <Setter
                                        TargetName="Icon_Title"
                                        Property="Color"
                                        Value="{StaticResource H_Color_Primary_White}" />
                            <Setter
                                        TargetName="Icon_Title"
                                        Property="ScreenReader.Line"
                                        Value="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=FZButton}}" />
                        </DataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    
    <Style
        x:Key="H_Style_MotionBlurScrollPanel_TabBar"
        TargetType="{Type VirtualizingScrollPanel}"
        BasedOn="{StaticResource H_Style_MotionBlurScrollPanel}">
        <Setter
            Property="EmptyItemStyle"
            Value="{x:Null}"/>
        <Setter
            Property="ItemHeight"
            Value="{StaticResource H_Height_TabBarWithScrollingMargins}" />
        <Setter
            Property="FocusManager.IsFocusScope"
            Value="True" />
    </Style>
    <Style
        x:Key="H_Style_TabBar_Scrolling"
        TargetType="{Type ItemsSelector}"
        BasedOn="{StaticResource H_Style_TabBar_Internal}">
        <Setter
            Property="Width"
            Value="1726" />
        <Setter Property="ItemContainerStyle"
                Value="{StaticResource H_Style_TabButton_Scrolling}"/>
        <Setter
            Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <VirtualizingScrollPanel
                        Style="{StaticResource H_Style_MotionBlurScrollPanel_TabBar}"
                        ItemWidth="261"
                        Padding="261,0,0,0"
                        x:Name="PART_MenuGroups" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel
                        FocusManager.IsFocusScope="True">
                        <FZButton
                            DockPanel.Dock="Left"
                            Style="{StaticResource H_Style_TabButton_Previous}" />
                        <FZButton
                            DockPanel.Dock="Right"
                            Style="{StaticResource H_Style_TabButton_Next}" />
                        <Grid HorizontalAlignment="Stretch">
                            <FZMaterial Color="{StaticResource H_Color_Primary_Black}" Opacity="0.15"/>
                            <ItemsPresenter
                                x:Name="PART_MenuGroupsPresenter"
                                Margin="{Convert {StaticResource H_Margin_ScrollingTabBar}, Converter={StaticResource H_InvertConverter}}" />
                        </Grid>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FZMaterial_TabBar_Edge_Shadow" TargetType="FZMaterial">
        <Setter Property="Width" Value="48"/>
        <Setter Property="IsHitTestVisible" Value="False"/>
        <Setter Property="Panel.ZIndex" Value="10"/>
        <Setter Property="Height" Value="{Binding Height, RelativeSource={RelativeSource AncestorType=ItemsSelector}}"/>
    </Style>

    <Style x:Key="H_Style_TabBar" TargetType="FZTabButtonsSelector">
        <Setter
            Property="FocusVisualStyle"
            Value="{Null}" />
        <Setter
            Property="ItemContainerStyle"
            Value="{StaticResource H_Style_TabButton}" />
        <Setter
            Property="Height"
            Value="{StaticResource H_Height_TabBar}" />
        <Setter
            Property="MaxWidth"
            Value="1740" />
        <Setter
            Property="Margin"
            Value="0, 0, 0, 8" />
        <Setter
            Property="AlternationCount"
            Value="{x:Static Int32.MaxValue}" />
        <Setter
            Property="PageSize"
            Value="1" />
        <Setter
            Property="HorizontalContentAlignment"
            Value="{Binding HorizontalAlignment, RelativeSource={RelativeSource Self}}" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="Visibility"
            Value="{Binding Items.Count, FallbackValue=Collapsed, RelativeSource={RelativeSource Self}, Converter={StaticResource H_CollapseIfZeroOrOne}}" />
        <Setter
            Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid>
                        <ItemScrollViewer x:Name="PART_MenuGroups"
                                            SlideDuration="0:0:0.267"
                                            MaxWidth="{Binding InnerWidth, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"/>

                        <FZMaterial x:Name="left_dropshadow"
                                    Style="{StaticResource A_Style_FZMaterial_TabBar_Edge_Shadow}"
                                    HorizontalAlignment="Left"
                                    Visibility="{Binding IsLeftShadowVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}, ElementName=PART_MenuGroups}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangle GradientColorA="{StaticResource A_Color_Tab_Shadow_Start}"
                                                                GradientColorB="{StaticResource A_Color_Tab_Shadow_End}"
                                                                GradientAngle="90"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                        <FZMaterial x:Name="right_dropshadow"
                                    Style="{StaticResource A_Style_FZMaterial_TabBar_Edge_Shadow}"
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding IsRightShadowVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}, ElementName=PART_MenuGroups}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetRoundtangle GradientColorA="{StaticResource A_Color_Tab_Shadow_Start}"
                                                                GradientColorB="{StaticResource A_Color_Tab_Shadow_End}"
                                                                GradientAngle="-90"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                    </Grid>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="FZTabButtonsSelector">
                    <Grid>
                        <DockPanel
                            x:Name="TabPanel"
                            Height="{DynamicDataBinding TabHeight, FallbackValue={StaticResource H_Height_TabBar}}"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Top"
                            Focusable="False">
                            <FZButton
                                DockPanel.Dock="Left"
                                Style="{Binding (DynamicData.Data).PreviousButtonSyle, FallbackValue={StaticResource H_Style_TabButton_Previous}, RelativeSource={RelativeSource TemplatedParent}}"
                                Margin="{Binding LeftTabButtonMargin, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Width="{Binding TabButtonWidth, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Height="{Binding TabBarHeight, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Panel.ZIndex="10"/>
                            <FZButton
                                DockPanel.Dock="Right"
                                Style="{Binding (DynamicData.Data).NextButtonSyle, FallbackValue={StaticResource H_Style_TabButton_Next}, RelativeSource={RelativeSource TemplatedParent}}" 
                                Margin="{Binding RightTabButtonMargin, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Width="{Binding TabButtonWidth, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Height="{Binding TabBarHeight, RelativeSource={RelativeSource AncestorType=FZTabButtonsSelector}}"
                                Panel.ZIndex="10"/>
                            <Grid HorizontalAlignment="Stretch"> 
                                <FZMaterial Color="{StaticResource H_Color_Primary_Black}" Opacity="0.15"/>
                                <Grid ClipToBounds="True" Margin="0,-30"> 
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="0,30">
                                        <FZButton x:Name="LoadingPanel"
                                                    Content="{Loc MessageCenter.IDS_RetrievingData}"
                                                    Style="{StaticResource H_Style_TabButton_Scrolling}"
                                                    IsEnabled="False" />

                                        <ItemsPresenter x:Name="PART_MenuGroupsPresenter" />
                                    </StackPanel>
                                </Grid>
                            </Grid>
                        </DockPanel>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasItems" Value="true">
                            <Setter TargetName="LoadingPanel" Property="Visibility" Value="Collapsed" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="H_Style_TabBar_SquareIcons"
                   BasedOn="{StaticResource H_Style_TabBar_Internal}"
                   TargetType="ItemsSelector">
        <Setter
                    Property="ItemContainerStyle"
                    Value="{StaticResource H_Style_TabButton_SquareIcons}" />
        <Setter Property="Height" Value="60" />
        <Setter
                    Property="Margin"
                    Value="0, 0, 0, 4" />
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem
                                Name="TabHeight"
                                DataType="Double"
                                Value="60" />
                    <DynamicDataItem
                                Name="NextOrPreviousWidth"
                                DataType="Double"
                                Value="72" />
                    <DynamicDataItem
                                Name="NextOrPreviousHeight"
                                DataType="Double"
                                Value="60" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <Style 
        TargetType="PolyStatsControl">
        <Setter 
            Property="Template">
            <Setter.Value>
                <ControlTemplate 
                    TargetType="PolyStatsControl">
                    <MapCustomRenderElement 
                        MapProfile="polystats" 
                        MapId="{TemplateBinding MapName}">
                      <MapCustomRenderElement.MapView>
                        <MapViewControllerWindowed 
                            MinMapHeight="{Binding Max, RelativeSource={RelativeSource TemplatedParent}, Converter={LinearTransformConverter Scale=2}}" 
                            MaxMapHeight="{Binding Max, RelativeSource={RelativeSource TemplatedParent}, Converter={LinearTransformConverter Scale=2}}" 
                            MapId="{TemplateBinding MapName}" 
                            TagName="doesntexist" 
                            TagValue="doesntexist"/>
                      </MapCustomRenderElement.MapView>
                    </MapCustomRenderElement>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger 
                Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}"
                Value="True">
                <Setter 
                    Property="UIPage"
                    Value="{Binding Content, RelativeSource={RelativeSource AncestorType=Window}}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter
        x:Key="H_Converter_TileStateToVisibility"
        Default="{x:Static Visibility.Visible}" CheckEnumKey="TileState">
        <MappingConverterEntry
            Key="{x:Static TileState.Enabled}" Value="{x:Static Visibility.Visible}"/>
        <MappingConverterEntry
            Key="{x:Static TileState.EnabledNonInteractive}" Value="{x:Static Visibility.Visible}"/>
        <MappingConverterEntry
            Key="{x:Static TileState.Disabled}" Value="{x:Static Visibility.Collapsed}"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_Converter_TileStateToBoolean"
        Default="True" CheckEnumKey="TileState">
        <MappingConverterEntry
            Key="{x:Static TileState.Enabled}" Value="True"/>
        <MappingConverterEntry
            Key="{x:Static TileState.EnabledNonInteractive}" Value="False"/>
        <MappingConverterEntry
            Key="{x:Static TileState.Disabled}" Value="False"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_Converter_TileStateToCommandEnabled">
        <MappingConverter.Default>
            <Boolean>True</Boolean>
        </MappingConverter.Default>
        <MappingConverterEntry
            Key="{x:Static TileState.Disabled}">
            <MappingConverterEntry.Value>
                <Boolean>False</Boolean>
            </MappingConverterEntry.Value>
        </MappingConverterEntry>
    </MappingConverter>

    <MappingConverter
        x:Key="H_Converter_DeniedCommandToLockState" Default="{x:Static LockState.Locked}">
        <MappingConverterEntry
            Key="{x:Null}" Value="{x:Static LockState.Unlocked}"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_TextColorSchemeToHeaderTextColor"
        Default="{StaticResource H_Color_Primary_Black}">
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.HeaderlessDark}"
            Value="{StaticResource A_Color_Transparent}"/>
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.Light}"
            Value="{StaticResource H_Color_Primary_White}"/>
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.HeaderlessLight}"
            Value="{StaticResource A_Color_Transparent}"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_TextColorSchemeToHeaderTextLockedColor"
        Default="{StaticResource H_Color_Primary_Grey_80pc}">
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.HeaderlessDark}"
            Value="{StaticResource A_Color_Transparent}"/>
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.HeaderlessLight}"
            Value="{StaticResource A_Color_Transparent}"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_TextColorSchemeToDescriptionTextColor"
        Default="{StaticResource H_Color_Primary_Black}">
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.Light}"
            Value="{StaticResource H_Color_Primary_White}"/>
        <MappingConverterEntry
            Key="{x:Static TextColorScheme.HeaderlessLight}"
            Value="{StaticResource H_Color_Primary_White}"/>
    </MappingConverter>

    <MappingConverter
        x:Key="H_TextColorSchemeToDescriptionTextLockedColor"
        Default="{StaticResource H_Color_Primary_Grey_80pc}">
    </MappingConverter>

    <Style
        x:Key="H_Style_Tile_Shadow"
        TargetType="{Type FZMaterial}">
        <Setter
            Property="RenderTransformOrigin"
            Value="0.5,0.5" />
        <Setter
            Property="IsHitTestVisible"
            Value="False" />
        <Setter
            Property="Color"
            Value="#4D000000" />
        <Setter
            Property="Preset">
            <Setter.Value>
                <FZMaterialPresetSelfShadow
                    Softness="36" />
            </Setter.Value>
        </Setter>
        <Setter
            Property="Margin"
            Value="-36" />
        <Setter
            Property="Opacity"
            Value="0" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding IsKeyboardFocused, RelativeSource={RelativeSource AncestorType={Type ContentControl}}}"
                Value="True">
                <Setter
                    Property="Opacity"
                    Value="1" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!--
        A_Style_OptInMotionBlur is "opt-in" in that motion blur is only applied if *both* MinValue.A and MinValue.B equals A_Int32_EnableMotionBlur.
        Intent is to allow MinValue.A as a per-element toggle, while MinValue.B can be driven via storyboard to only be enabled while animating.
    -->
    <Style x:Key="A_Style_OptInMotionBlur" TargetType="{x:Type FrameworkElement}">
        <Setter Property="Effect" Value="{Null}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (MinValue.Result), RelativeSource={RelativeSource TemplatedParent}, FallbackValue={StaticResource A_Int32_DisableMotionBlur}}" Value="1">
                <!-- Should be Value={StaticResource A_Int32_EnableMotionBlur}}, but MinValue.Result returns a double and otherwise the comparision doesn't handle the type difference  -->
                <Setter Property="Effect" Value="{StaticResource A_MotionBlurEffect}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate
        TargetType="FZButton" x:Key="H_Template_TileButton">
        <ControlTemplate.Resources>
            <Thickness x:Key="H_Thickness_BreadcrumbMargin">6</Thickness>
        </ControlTemplate.Resources>
        <Grid>
            <FZMaterial x:Name="TileShadow"
                Style="{StaticResource H_Style_Tile_Shadow}" />
            <Grid x:Name="ContentsContainer"
                Style="{StaticResource A_Style_OptInMotionBlur}">
                <StrokeHighlightControl 
                    x:Name="StrokeHighlight"
                    Style="{StaticResource H_Style_StrokeHighlight_Animated}"
                    IsEnabled="{Binding IsKeyboardFocused, RelativeSource={RelativeSource AncestorType={Type ContentControl}}}"
                    ContentRadius="8"
                    InnerThickness="{StaticResource A_Thickness_StrokeHighlight_TileInner}"
                    OuterThickness="{StaticResource A_Thickness_StrokeHighlight_TileOuter}"
                    InnerColor="{StaticResource H_Color_StrokeHighlight_DefaultInner}"
                    OuterColor="{StaticResource H_Color_StrokeHighlight_DefaultOuter}"/>
                <ContentPresenter />
                <ContentControl
                    x:Name="Breadcrumb"
                    Style="{DynamicResource H_Style_NotificationBadge_Tile_Button}"
                    Content="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType={Type ContentControl}}}"
                    Margin="{StaticResource H_Thickness_BreadcrumbMargin}"/>
            </Grid>
        </Grid>
    </ControlTemplate>

    <UIStoryboard
        x:Key="H_Storyboard_Tile_Selected"
        DurationOverride="0:0:0.25">
        <Int32AnimationUsingKeyFrames
            Storyboard.TargetProperty="(Panel.ZIndex)">
            <DiscreteInt32KeyFrame
                KeyTime="0:0:0.0"
                Value="3">
            </DiscreteInt32KeyFrame>
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="(ZPanel.ZOffset)">
            <DiscreteDoubleKeyFrame
                KeyTime="0:0:0.0"
                Value="0">
            </DiscreteDoubleKeyFrame>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                  Value="1.00"
                                  EasingFunction="{CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                  Value="1.00"
                                  EasingFunction="{CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
    </UIStoryboard>

    <UIStoryboard
        x:Key="H_Storyboard_Tile_Unselected"
        DurationOverride="0:0:0.16">
        <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.ZIndex)" FillBehavior="Stop">
            <DiscreteInt32KeyFrame KeyTime="0:0:0.0"
                                   Value="1">
            </DiscreteInt32KeyFrame>
            <DiscreteInt32KeyFrame KeyTime="0:0:1.0"
                                   Value="0">
            </DiscreteInt32KeyFrame>
        </Int32AnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(ZPanel.ZOffset)">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                  Value="0"
                                  EasingFunction="{CircleEasing EasingMode=EaseOut}"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                  Value="1.00"
                                  EasingFunction="{CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <EasingDoubleKeyFrame KeyTime="0:0:1.0"
                                  Value="1.00"
                                  EasingFunction="{CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
    </UIStoryboard>

    <Style
        x:Key="H_Style_Tile"
        TargetType="{Type FZButton}">
        <Setter Property="CompareValue.A"
                Value="{Binding (TileMenuNavigationManager.EnabledMenuIndex), RelativeSource={RelativeSource Self}, FallbackValue=0}" />
        <Setter Property="CompareValue.B"
                Value="{Binding (AttachedTileMenu.TileMenuNavigationManager).SelectedMenu.(TileMenuNavigationManager.EnabledMenuIndex), RelativeSource={RelativeSource AncestorType=Page}, FallbackValue=0}" />
        <Setter Property="TileMenuNavigationManager.IsOnActiveMenu"
                Value="{Binding (CompareValue.Result), RelativeSource={RelativeSource Self}, Converter={StaticResource H_TrueIfEqual}}" />
        <Setter Property="IsHitTestVisible"
                Value="{Binding (TileMenuNavigationManager.IsOnActiveMenu), RelativeSource={RelativeSource Self}}" />
        <Setter Property="Content"
                Value="{Binding}" />
        <Setter Property="Margin"
                Value="0,0,4,4" />
        <Setter Property="TileMenuNavigationManager.GridX"
                Value="{Binding (Grid.Column), RelativeSource={RelativeSource Self}, FallbackValue=0}" />
        <Setter Property="TileMenuNavigationManager.GridY"
                Value="{Binding (Grid.Row), RelativeSource={RelativeSource Self}, FallbackValue=0}" />
        <Setter Property="TileMenuNavigationManager.GridWidth"
                Value="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource Self}, FallbackValue=1}" />
        <Setter Property="TileMenuNavigationManager.GridHeight"
                Value="{Binding (Grid.RowSpan), RelativeSource={RelativeSource Self}, FallbackValue=1}" />
        <Setter Property="Grid.ColumnSpan"
                Value="1" />
        <Setter Property="Grid.RowSpan"
                Value="1" />
        <Setter Property="MinValue.A"
                Value="{StaticResource A_Int32_EnableMotionBlur}"/>
        <Setter Property="MinValue.B"
                Value="{StaticResource A_Int32_DisableMotionBlur}"/>
        <Setter Property="RenderTransformOrigin"
                Value="0.5,0.5" />
        <Setter Property="UseSelfAsDefaultCommandParameter"
                Value="True"/>
        <Setter Property="MultiStringFormatter.Param0"
                Value="{Binding Heading}"/>
        <Setter Property="MultiStringFormatter.Param1"
                Value="{Binding Description}"/>
        <Setter Property="ManualPassthroughProperty.Input"
                Value="{Binding (MultiStringFormatter.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource H_TextForDisplayToTextForScreenReader}}"/>
        <Setter Property="ManualPassthroughProperty.Allowed"
                Value="{Binding IsKeyboardFocused, RelativeSource={RelativeSource Self}}"/>
        <Setter Property="ScreenReader.Line"
                Value="{Binding (ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="ScreenReader.Event"
                Value="OnChange" />
        <Setter Property="ScreenReader.ControlType"
                Value="Button" />
        <Setter Property="ScreenReader.LineType"
                Value="SelectedItem" />
        <Setter Property="AccumulateSelfOnParent.ParentType"
                Value="{Type Panel}" />
        <Setter Property="FindSelfIndexInCollection.Collection"
                Value="{Binding (AccumulateSelfOnParent.Output), RelativeSource={RelativeSource AncestorType={Type Panel}}}" />
        <Setter Property="ScreenReader.SelectedNumber"
                Value="{Binding (FindSelfIndexInCollection.Index), RelativeSource={RelativeSource Self}, Converter={StaticResource H_IndexToNumberConverter}, FallbackValue=0}" />
        <Setter Property="ScreenReader.SelectedCount"
                Value="{Binding (AccumulateSelfOnParent.Output).Count, RelativeSource={RelativeSource AncestorType={Type Panel}}, FallbackValue=0}" />
        <Setter Property="Visibility"
                Value="{Binding (TileMenuNavigationManager.TileState), RelativeSource={RelativeSource Self}, Converter={StaticResource H_Converter_TileStateToVisibility}, FallbackValue={x:Static Visibility.Visible}}"/>
        <Setter Property="IsEnabled"
                Value="{Binding (TileMenuNavigationManager.TileState), RelativeSource={RelativeSource Self}, Converter={StaticResource H_Converter_TileStateToBoolean}, FallbackValue=True}"/>
        <Setter Property="PropertySetter.Property" 
                Value="Command.Enabled"/>
        <Setter Property="PropertySetter.Value" 
                Value="{Binding Path=(TileMenuNavigationManager.TileState), RelativeSource={RelativeSource Self}, Converter={StaticResource H_Converter_TileStateToCommandEnabled}}"/>
        <Setter Property="TileMenuNavigationManager.LockState" Value="{Binding Command.DeniedCommand, RelativeSource={RelativeSource Self}, Converter={StaticResource H_Converter_DeniedCommandToLockState}}" />
        <Setter Property="ClickMode"
                Value="{x:Static ClickMode.Press}"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Template"
            Value="{StaticResource H_Template_TileButton}"/>
        <Style.Triggers>
            <Trigger Property="TileMenuNavigationManager.IsOnActiveMenu" Value="False">
                <Setter Property="PropertySetter.Value">
                    <Setter.Value>
                        <Boolean>False</Boolean>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <!-- This forces the PropertySetter to update when the command changes -->
            <Trigger Property="Command" Value="{x:Null}">
                <Setter Property="PropertySetter.Property"
                        Value=""/>
            </Trigger>
            <Trigger Property="TileMenuNavigationManager.TileState" Value="{x:Static TileState.Enabled}">
                <Setter Property="AccumulateSelfOnParent.SortOrder"
                        Value="{Binding (TileMenuNavigationManager.SortIndex), RelativeSource={RelativeSource Self}}"/>
            </Trigger>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsKeyboardFocused}" Value="True">
                <DataTrigger.EnterActions>
                    <BeginUIStoryboard Storyboard="{StaticResource H_Storyboard_Tile_Selected}"/>
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <BeginUIStoryboard Storyboard="{StaticResource H_Storyboard_Tile_Unselected}"/>
                </DataTrigger.ExitActions>
            </DataTrigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsMouseOver"
                               Value="True"/>
                    <Condition Property="TileMenuNavigationManager.TileState"
                               Value="{x:Static TileState.Enabled}"/>
                </MultiTrigger.Conditions>
                <MultiTrigger.EnterActions>
                    <CommandAction CommandPropertyPath="(AttachedTileMenu.TileMenuNavigationManager).HighlightTile" AncestorType="Page" />
                </MultiTrigger.EnterActions>
            </MultiTrigger>
            <DataTrigger Binding="{Binding Description, Converter={StringVisConverter}}" Value="{x:Static Visibility.Visible}">
                <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_Tile_DescriptionOnly}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Description, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource Self}}" Value="{x:Static LockState.Locked}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_Format_TileLocked_DescriptionOnly}"/>
            </MultiDataTrigger>
            <DataTrigger Binding="{Binding Heading, Converter={StringVisConverter}}" Value="{x:Static Visibility.Visible}">
                <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_Tile_HeadingOnly}"/>
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Heading, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource Self}}" Value="{x:Static LockState.Locked}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_Format_TileLocked_HeadingOnly}"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Heading, Converter={StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding Description, Converter={StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="MultiStringFormatter.Format" Value="{Loc Main.IDS_ScreenReader_Format_Tile_HeadingAndDescription}"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding Heading, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding Description, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                    <Condition Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource Self}}" Value="{x:Static LockState.Locked}"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_Format_TileLocked_HeadingAndDescription}"/>
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style
        x:Key="H_Style_Tile_Background_NoTexture"
        TargetType="{Type FZMaterial}">
        <Setter
            Property="Preset"
            Value="{Roundtangle CornerRadius=8}" />
        <Setter
            Property="Color"
            Value="{StaticResource H_Color_Primary_White}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </DataTrigger>
            <Trigger
                Property="IsEnabled"
                Value="False">
                <Setter
                    Property="Preset"
                    Value="{GlassRoundtangle CornerRadius=8}" />
                <Setter
                    Property="Color"
                    Value="{StaticResource H_Color_Glass_Purple_40pc}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="H_Style_Tile_Background"
            TargetType="{Type FZMaterial}"
            BasedOn="{StaticResource H_Style_Tile_Background_NoTexture}">
        <Setter Property="TransformImageToAncestorBounds.ImageStretch" Value="None"/>
        <Setter Property="TransformImageToAncestorBounds.ImageScaleFactor" Value="{Binding ScaleValue, Source={StaticResource PART_UIResolutionScaler}, Converter={StaticResource H_ReciprocalConverter}}"/>
        <Setter
            Property="Visibility"
            Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}" />
        <Setter
            Property="Preset"
            Value="{Roundtangle CornerRadius=8}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="True"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding Icon, Converter={TypeCompareConverter}, ConverterParameter={Type String}, FallbackValue=False}" Value="False"/>
                    <Condition Binding="{Binding Icon, Converter={TypeCompareConverter}, ConverterParameter={Type ImageSource}, FallbackValue=False}" Value="False"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="ImageSourceNoPreload" Value="game:/Media/UI/Textures/Data_Bound/PauseMenu_Images/Hazard_Stripe_Pattern.png" />
                <Setter Property="TransformImageToAncestorBounds.AncestorName" Value="PART_MenuContent"/>
                <Setter Property="TextureWrap" Value="True"/>
                <Setter Property="ImageTransform" Value="{Binding (TransformImageToAncestorBounds.ImageTransform), RelativeSource={RelativeSource Self}}"/>
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="True"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding Icon, Converter={TypeCompareConverter}, ConverterParameter={Type ImageSource}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="ImageSource"
                    Value="{Binding Icon}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="True"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding Icon, Converter={TypeCompareConverter}, ConverterParameter={Type String}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="ImageSourceNoPreload"
                    Value="{Binding Icon}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="A_Style_ImageTile_LockBackground"
            TargetType="{Type FZMaterial}">
        <Setter
            Property="Visibility"
            Value="Hidden" />
        <Setter
            Property="Preset"
            Value="{Roundtangle CornerRadius=8}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="IsEnabled"
                    Value="False" />
            </DataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="False"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding LockedIcon, Converter={TypeCompareConverter}, ConverterParameter={Type ImageSource}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="ImageSource"
                    Value="{Binding LockedIcon}" />
                <Setter
                    Property="Visibility"
                    Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}" />
            </MultiDataTrigger>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="False"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding LockedIcon, Converter={TypeCompareConverter}, ConverterParameter={Type String}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter
                    Property="ImageSourceNoPreload"
                    Value="{Binding LockedIcon}" />
                <Setter
                    Property="Visibility"
                    Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}" />
            </MultiDataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter x:Key="A_LangStrToHeadingTextLineAdjust" Default="-0.62">
    </MappingConverter>

    <Style x:Key="A_Style_ImageTile_LockMaterial" TargetType="{Type FZMaterial}">
        <Setter Property="IsEnabled" Value="False"/>
        <Setter Property="Visibility" Value="Hidden"/>
        <Setter Property="Stretch" Value="Uniform"/>
        <Setter Property="GreedyMeasure" Value="True"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Style.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=FZButton}}" Value="{x:Static LockState.Locked}"/>
                    <Condition Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True"/>
                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="True"/>
                </MultiDataTrigger.Conditions>
                <Setter Property="Visibility" Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}"/>
                <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/PauseMenu_Images/Large_Tile_Lock_Icon.png" />
            </MultiDataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue={x:Static CompareResult.LessThan}, Converter={CompareConverter Value=1}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="IsEnabled" Value="True"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.RowSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue={x:Static CompareResult.LessThan}, Converter={CompareConverter Value=4}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="IsEnabled" Value="True"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style
        x:Key="H_Style_SingleLineTextTile_HeadingText"
        TargetType="{Type FZTextBlock}">
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="HorizontalAlignment"
            Value="Left" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="TextWrapping"
            Value="NoWrap" />
        <Setter
            Property="TextAlignment"
            Value="Left" />
        <Setter
            Property="CapHeight"
            Value="21" />
        <Setter
            Property="Text"
            Value="{Binding Heading}" />
        <Setter
            Property="Visibility"
            Value="{Binding Heading, Converter={StringVisConverter}}" />
        <Setter
            Property="Color"
            Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextColor}, FallbackValue={StaticResource H_Color_Primary_Black}}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="Color"
                    Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextLockedColor}, FallbackValue={StaticResource H_Color_Primary_Grey_80pc}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="H_Template_SingleLineTextTile">
        <FZMaterial
            Style="{StaticResource H_Style_Tile_Background}">
            <Grid Margin="24,0">
                <FZTextBlock
                    Style="{StaticResource H_Style_SingleLineTextTile_HeadingText}" />
            </Grid>
        </FZMaterial>
    </DataTemplate>

    <Style
        x:Key="H_Style_SingleLineTextTile"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_Tile}">
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_SingleLineTextTile}" />
    </Style>

    <Style
        x:Key="H_Style_MultiLineTextTile_HeadingText"
        TargetType="{Type FZTextBlock}">
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="HorizontalAlignment"
            Value="Left" />
        <Setter
            Property="VerticalAlignment"
            Value="Top" />
        <Setter
            Property="TextWrapping"
            Value="WrapWithOverflow" />
        <Setter
            Property="TextAlignment"
            Value="Left" />
        <Setter
            Property="CapHeight"
            Value="32" />
        <Setter
            Property="LineAdjust"
            Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToHeadingTextLineAdjust}}" />
        <Setter
            Property="Text"
            Value="{Binding Heading}" />
        <Setter
            Property="Visibility"
            Value="{Binding Heading, Converter={StringVisConverter}}" />
        <Setter
            Property="Color"
            Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextColor}, FallbackValue={StaticResource H_Color_Primary_Black}}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}"
                Value="{x:Static LockState.Locked}">
                <Setter
                    Property="Color"
                    Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextLockedColor}, FallbackValue={StaticResource H_Color_Primary_Grey_80pc}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="H_Template_MultiLineTextTile">
        <FZMaterial
            Style="{StaticResource H_Style_Tile_Background}">
            <Grid Margin="24,24">
                <FZTextBlock
                    Style="{StaticResource H_Style_MultiLineTextTile_HeadingText}" />
            </Grid>
        </FZMaterial>
    </DataTemplate>

    <Style
        x:Key="H_Style_MultiLineTextTile"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_Tile}">
        <Setter
            Property="Grid.RowSpan"
            Value="2" />
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_MultiLineTextTile}" />
    </Style>

    <MappingConverter x:Key="A_LangStrToImageTileHeadingTextLineAdjust" Default="-0.69">
    </MappingConverter>

    <Style
        x:Key="H_Style_ImageTile_HeadingText"
        TargetType="{Type FZTextBlock}">
        <Setter
            Property="FontFamily"
            Value="Horizon_C" />
        <Setter
            Property="HorizontalAlignment"
            Value="Left" />
        <Setter
            Property="VerticalAlignment"
            Value="Top" />
        <Setter
            Property="TextWrapping"
            Value="WrapWithOverflow" />
        <Setter
            Property="TextAlignment"
            Value="Left" />
        <Setter
            Property="CapHeight"
            Value="60" />
        <Setter
            Property="LineAdjust"
            Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToImageTileHeadingTextLineAdjust}}" />
        <!-- This would be better fixed in the font -->
        <!--Setter
            Property="TrackingAdjust"
            Value="-0.01" /-->
        <Setter
            Property="Text"
            Value="{Binding Heading}" />
        <Setter
            Property="Visibility"
            Value="{Binding Heading, Converter={StringVisConverter}}" />
        <Setter
            Property="Color"
            Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextColor}, FallbackValue={StaticResource H_Color_Primary_Black}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}" Value="{x:Static LockState.Locked}">
                <Setter Property="Color" Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToHeaderTextLockedColor}, FallbackValue={StaticResource H_Color_Primary_Grey_80pc}}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}" Value="3">
                <Setter Property="CapHeight" Value="60"/>
                <Setter Property="MaxWidth" Value="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=FZButton}, Converter={LinearTransformConverter Scale=0.5}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}" Value="2">
                <Setter Property="CapHeight" Value="35"/>
                <Setter Property="MaxWidth" Value="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=FZButton}, Converter={LinearTransformConverter Scale=0.5}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}" Value="1">
                <Setter Property="CapHeight" Value="35"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style
        x:Key="H_Run_Tile_DescriptionText_BOLD"
        TargetType="{Type FZRun}">
        <Setter Property="FontFamily" Value="Horizon_C"/>
    </Style>

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

    <MappingConverter x:Key="A_MappingConverter_DescriptionText">
        <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource H_Run_Tile_DescriptionText_BOLD}" />
        <MappingConverterEntry Key="{NoCase FP_ICON}" Value="{StaticResource H_Run_DesriptionText_FP_ICON}" />
    </MappingConverter>

    <MappingConverter x:Key="A_LangStrToImageTileDescriptionTextLineAdjust" Default="-0.66">
    </MappingConverter>

    <Style
        x:Key="H_Style_ImageTile_DescriptionText"
        TargetType="{Type FZTextBlock}">
        <Setter
            Property="FontFamily"
            Value="Horizon_D" />
        <Setter
            Property="HorizontalAlignment"
            Value="Left" />
        <Setter
            Property="VerticalAlignment"
            Value="Bottom" />
        <Setter
            Property="TextWrapping"
            Value="Wrap" />
        <Setter
            Property="CapHeight"
            Value="18" />
        <Setter
            Property="LineAdjust"
            Value="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToImageTileHeadingTextLineAdjust}}" />
        <Setter
            Property="Text"
            Value="{Binding Description}" />
        <Setter
            Property="MarkupConverter"
            Value="{StaticResource A_MappingConverter_DescriptionText}" />
        <Setter
            Property="Visibility"
            Value="{Binding Description, Converter={StringVisConverter UseHidden=True}}" />
        <Setter
            Property="Color"
            Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToDescriptionTextColor}, FallbackValue={StaticResource H_Color_Primary_Black}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}" Value="{x:Static LockState.Locked}">
                <Setter Property="Color" Value="{Binding (TileMenuNavigationManager.TextColorScheme), RelativeSource={RelativeSource AncestorType=ContentControl}, Converter={StaticResource H_TextColorSchemeToDescriptionTextLockedColor}, FallbackValue={StaticResource H_Color_Primary_Grey_80pc}}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}" Value="2">
                <Setter Property="MaxWidth" Value="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=FZButton}, Converter={LinearTransformConverter Scale=0.5}}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding (Grid.ColumnSpan), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}" Value="3">
                <Setter Property="MaxWidth" Value="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=FZButton}, Converter={LinearTransformConverter Scale=0.5}}"/>
            </DataTrigger>
        </Style.Triggers>

    </Style>

    <MappingConverter
        x:Key="H_Converter_TileRowSpanToMinHeight"
        Default="231">
        <MappingConverterEntry
            Key="2" Value="87"/>
        <MappingConverterEntry
            Key="3" Value="159"/>
        <MappingConverterEntry
            Key="6" Value="87"/>
        <MappingConverterEntry
            Key="7" Value="159"/>
    </MappingConverter>

    <Style x:Key="H_Style_ImageTile_ContentsPanel"
        TargetType="{Type Panel}">
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Margin" Value="24,29"/>
        <Setter Property="MinHeight" Value="{Binding (Grid.RowSpan), RelativeSource={RelativeSource AncestorType={Type FZButton}}, Converter={StaticResource H_Converter_TileRowSpanToMinHeight}}"/>
    </Style>

    <Style x:Key="H_Style_FZMaterial_ImageTile_FloatingIconLogo"
        TargetType="{Type FZMaterial}">
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="Stretch" Value="Uniform"/>
        <Setter Property="GreedyMeasure" Value="True"/>
        <Setter Property="Margin" Value="-5"/>
        <Setter Property="Visibility"
                Value="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter UseHidden=True}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}" Value="True">
                <Setter Property="ImageSourceNoPreload" Value="{Binding FloatingIcon}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="H_Template_ImageTile">
        <Grid>
            <FZMaterial Style="{StaticResource H_Style_Tile_Background}" />
            <FZMaterial Style="{StaticResource A_Style_ImageTile_LockBackground}" />
            <FZMaterial Style="{StaticResource A_Style_ImageTile_LockMaterial}" />
            <DockPanel
                Style="{StaticResource H_Style_ImageTile_ContentsPanel}">
                <FZTextBlock
                    Style="{StaticResource H_Style_ImageTile_DescriptionText}"
                    Margin="0,29,0,0"
                    DockPanel.Dock="Bottom"/>
                <FZTextBlock
                    Style="{StaticResource H_Style_ImageTile_HeadingText}"/>
            </DockPanel>
        </Grid>
    </DataTemplate>

    <Style
        x:Key="H_Style_ImageTile"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_Tile}">
        <Setter
            Property="Grid.ColumnSpan"
            Value="2" />
        <Setter
            Property="Grid.RowSpan"
            Value="8" />
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_ImageTile}"/>
    </Style>

    <DataTemplate x:Key="H_Template_VideoTile">
        <Grid>
            <FZMaterial
                x:Name="Background"
                Style="{StaticResource H_Style_Tile_Background}" />
            <FZMaterial Style="{StaticResource A_Style_ImageTile_LockBackground}" />
            <FZMaterial Style="{StaticResource A_Style_ImageTile_LockMaterial}" />
            <FZMediaElement
                x:Name="Video"
                LoadedBehavior="Manual"
                Width="{Binding VideoWidth}"
                Height="{Binding VideoHeight}"
                HorizontalAlignment="{Binding VideoHorizontalAlignment, FallbackValue=Stretch}"
                VerticalAlignment="{Binding VideoVerticalAlignment, FallbackValue=Stretch}"
                IsHitTestVisible="False">
                <FZMediaElement.Preset>
                    <FZMaterialPresetRoundtangle
                        Saturation="{Binding Preset.Saturation, ElementName=Background, FallbackValue=1}"
                        CornerRadius="8"/>
                </FZMediaElement.Preset>
                <FZMediaElement.Style>
                    <Style
                        TargetType="{Type FZMediaElement}">
                        <Setter Property="Visibility" Value="{x:Static Visibility.Hidden}"/>
                        <Setter Property="Opacity" Value="0"/>
                        <Setter Property="Color" Value="Transparent"/>
                        <Style.Triggers>
                            <MultiDataTrigger>
                                <MultiDataTrigger.Conditions>
                                    <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType={Type ContentControl}}, Path=IsKeyboardFocused}" Value="True"/>
                                    <Condition Binding="{Binding (TileMenuNavigationManager.LockState), RelativeSource={RelativeSource AncestorType=ContentControl}}" Value="{x:Static LockState.Unlocked}"/>
                                </MultiDataTrigger.Conditions>
                                <MultiDataTrigger.EnterActions>
                                    <StopVideoTrigger />
                                    <!-- PlayVideoTrigger intentionally wrapped in a storyboard to introduce an artificial delay; Playing immediately was causing glitches where it showed a single frame from the next tab's video! -->
                                    <BeginUIStoryboard>
                                        <UIStoryboard>
                                            <UIStoryboard.TriggerAnimation>
                                                <PlayVideoTrigger />
                                            </UIStoryboard.TriggerAnimation>
                                        </UIStoryboard>
                                    </BeginUIStoryboard>
                                </MultiDataTrigger.EnterActions>
                                <MultiDataTrigger.ExitActions>
                                    <StopVideoTrigger />
                                </MultiDataTrigger.ExitActions>
                                <Setter Property="Loop" Value="True"/>
                                <Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
                                <Setter Property="Opacity" Value="1"/>
                                <Setter Property="Color" Value="White"/>
                            </MultiDataTrigger>
                        </Style.Triggers>
                    </Style>
                </FZMediaElement.Style>
            </FZMediaElement>
            <DockPanel
                Style="{StaticResource H_Style_ImageTile_ContentsPanel}">
                <FZTextBlock
                    Style="{StaticResource H_Style_ImageTile_DescriptionText}"
                    Margin="0,29,0,0"
                    DockPanel.Dock="Bottom"/>
                <FZTextBlock
                    Style="{StaticResource H_Style_ImageTile_HeadingText}"/>
            </DockPanel>
        </Grid>
        <DataTemplate.Triggers>
            <MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType={Type Page}}, FallbackValue=False}"
                        Value="True" />
                    <!--<Condition
                        Binding="{Binding (TileMenuNavigationManager.IsOnActiveMenu), RelativeSource={RelativeSource AncestorType=FZButton}, FallbackValue=False}"
                        Value="True"/>-->
                    <Condition
                        Binding="{Binding Source, Converter={FZBooleanToVisibilityConverter}}"
                        Value="{Static Visibility.Visible}" />
                </MultiDataTrigger.Conditions>
                <Setter
                    TargetName="Video"
                    Property="Source"
                    Value="{Binding Source}" />
            </MultiDataTrigger>
            <!--<MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType={Type Page}}, FallbackValue=False}"
                        Value="True" />
                    <Condition
                        Binding="{Binding Sequence, Converter={FZBooleanToVisibilityConverter}}"
                        Value="{Static Visibility.Visible}" />
                </MultiDataTrigger.Conditions>
                <Setter
                    TargetName="Video"
                    Property="VideoSequence.Attached"
                    Value="{Binding Sequence}" />
            </MultiDataTrigger>-->
            <DataTrigger Binding="{Binding VideoWidth}" Value="Infinity">
                <Setter TargetName="Video" Property="Width" Value="{Binding ActualWidth, ElementName=Background}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding VideoHeight}" Value="Infinity">
                <Setter TargetName="Video" Property="Height" Value="{Binding ActualHeight, ElementName=Background}"/>
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <Style
        x:Key="H_Style_VideoTile"
        TargetType="{Type FZButton}"
        BasedOn="{StaticResource H_Style_Tile}">
        <Setter
            Property="Grid.ColumnSpan"
            Value="2" />
        <Setter
            Property="Grid.RowSpan"
            Value="8" />
        <Setter
            Property="ContentTemplate"
            Value="{StaticResource H_Template_VideoTile}"/>
    </Style>

    <Style x:Key="H_Style_Grid_TileMenuBase" TargetType="{Type Grid}"
        BasedOn="{StaticResource A_Style_FrameworkElement_DefaultTransition}">
        <Setter
            Property="UIPageTransitionManager.TransitionIndex"
            Value="0" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Height"
            Value="576" />
        <Setter
            Property="Margin"
            Value="0,0,-4,-4" />
        <Setter
            Property="TileMenuNavigationManager.GridWidth"
            Value="{Binding (Grid.ColumnDefinitions).Count, RelativeSource={RelativeSource Self}, FallbackValue=4}" />
        <Setter
            Property="TileMenuNavigationManager.GridHeight"
            Value="{Binding (Grid.RowDefinitions).Count, RelativeSource={RelativeSource Self}, FallbackValue=8}" />
        <Setter
            Property="Visibility"
            Value="{Binding (TileMenuNavigationManager.EnabledMenuIndex), RelativeSource={RelativeSource Self}, Converter={StaticResource H_CollapseIfLessThanZero}, FallbackValue={Static Visibility.Visible}}" />
        <Style.Resources>
            <Duration x:Key="A_Duration_MenuPageTransition_Off">0:0:0.18</Duration>
            <Duration x:Key="A_Duration_MenuPageTransition_On">0:0:0.28</Duration>
            <Double x:Key="A_Double_MenuPageTransition_Distance">250</Double>

            <KeyTime x:Key="A_KeyTime_Transision_Opacity_End_Off">0:0:0.7</KeyTime>

            <KeyTime x:Key="A_KeyTime_Transition_Opacity_On_Start">0:0:0.4</KeyTime>

            <CubicEase x:Key="A_CubicEase_Transision_Off_Opacity"
                        EasingMode="EaseIn"/>
            <CubicEase x:Key="A_CubicEase_Transision_On_Opacity"
                        EasingMode="EaseOut"/>

            <UIStoryboard x:Key="PART_ANIMATION_RIGHT_Off" DurationOverride="{StaticResource A_Duration_MenuPageTransition_Off}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="{StaticResource A_Double_MenuPageTransition_Distance}" 
                                          EasingFunction="{CubicEase EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                               Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Transision_Opacity_End_Off}" 
                                          Value="0"
                                          EasingFunction="{StaticResource A_CubicEase_Transision_Off_Opacity}"/>
                </DoubleAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.02"
                                             Value="False" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(TileMenuNavigationManager.IsOnActiveMenu)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.02"
                                             Value="False" />
                </BooleanAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames
                    Storyboard.TargetProperty="(MinValue.B)"
                    Storyboard.TargetName="{Null}"
                    FillBehavior="Stop">
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:0.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:1.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}" />
                </Int32AnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="PART_ANIMATION_LEFT_Off" DurationOverride="{StaticResource A_Duration_MenuPageTransition_Off}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="{Convert {StaticResource A_Double_MenuPageTransition_Distance}, Converter={StaticResource H_InvertConverter}}" 
                                          EasingFunction="{CubicEase EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                               Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Transision_Opacity_End_Off}" 
                                          Value="0"
                                          EasingFunction="{StaticResource A_CubicEase_Transision_Off_Opacity}"/>
                </DoubleAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)"
                                                Storyboard.TargetName="{x:Null}">
                    
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.02"
                                             Value="False" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(TileMenuNavigationManager.IsOnActiveMenu)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.02"
                                             Value="False" />
                </BooleanAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames
                    Storyboard.TargetProperty="(MinValue.B)"
                    Storyboard.TargetName="{Null}"
                    FillBehavior="Stop">
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:0.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:1.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}" />
                </Int32AnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="PART_ANIMATION_RIGHT_On" DurationOverride="{StaticResource A_Duration_MenuPageTransition_On}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="{StaticResource A_Double_MenuPageTransition_Distance}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="0" 
                                          EasingFunction="{CubicEase EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                Storyboard.TargetName="{x:Null}">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Transition_Opacity_On_Start}" 
                                          Value="0"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="1"
                                          EasingFunction="{StaticResource A_CubicEase_Transision_On_Opacity}"/>
                </DoubleAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:1.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(TileMenuNavigationManager.IsOnActiveMenu)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:1.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames
                    Storyboard.TargetProperty="(MinValue.B)"
                    Storyboard.TargetName="{Null}"
                    FillBehavior="Stop">
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:0.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:1.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}" />
                </Int32AnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="PART_ANIMATION_LEFT_On" DurationOverride="{StaticResource A_Duration_MenuPageTransition_On}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" 
                                            Value="{Convert {StaticResource A_Double_MenuPageTransition_Distance}, Converter={StaticResource H_InvertConverter}}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="0" 
                                          EasingFunction="{CubicEase EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                Storyboard.TargetName="{x:Null}">
                    <LinearDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Transition_Opacity_On_Start}" 
                                          Value="0"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" 
                                          Value="1"
                                          EasingFunction="{StaticResource A_CubicEase_Transision_On_Opacity}"/>
                </DoubleAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:1.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(TileMenuNavigationManager.IsOnActiveMenu)"
                                                Storyboard.TargetName="{x:Null}">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:1.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <Int32AnimationUsingKeyFrames
                    Storyboard.TargetProperty="(MinValue.B)"
                    Storyboard.TargetName="{Null}"
                    FillBehavior="Stop">
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:0.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}"/>
                    <DiscreteInt32KeyFrame
                        KeyTime="0:0:1.0"
                        Value="{StaticResource A_Int32_EnableMotionBlur}" />
                </Int32AnimationUsingKeyFrames>
            </UIStoryboard>
        </Style.Resources>
    </Style>

    <Double x:Key="H_Width_2TileMenu">576</Double>
    <Double x:Key="H_Width_3TileMenu">864</Double>
    <Double x:Key="H_Width_4TileMenu">1152</Double>
    <Double x:Key="H_Width_5TileMenu">1440</Double>

    <Style x:Key="H_Style_Grid_2TileMenu" TargetType="{Type Grid}"
        BasedOn="{StaticResource H_Style_Grid_TileMenuBase}">
        <Setter Property="Width" Value="{StaticResource H_Width_2TileMenu}"/>
    </Style>
    <Style x:Key="H_Style_Grid_3TileMenu" TargetType="{Type Grid}"
        BasedOn="{StaticResource H_Style_Grid_TileMenuBase}">
        <Setter Property="Width" Value="{StaticResource H_Width_3TileMenu}"/>
    </Style>
    <Style x:Key="H_Style_Grid_4TileMenu" TargetType="{Type Grid}"
        BasedOn="{StaticResource H_Style_Grid_TileMenuBase}">
        <Setter Property="Width" Value="{StaticResource H_Width_4TileMenu}" />
    </Style>
    <Style x:Key="H_Style_Grid_5TileMenu" TargetType="{Type Grid}"
        BasedOn="{StaticResource H_Style_Grid_TileMenuBase}">
        <Setter Property="Width" Value="{StaticResource H_Width_5TileMenu}" />
    </Style>

    <Double x:Key="H_Height_FullScreenCarousel">759</Double>
    <Double x:Key="H_Height_FullScreenCarousel_TwoRows">664</Double>


    <MultiConverter x:Key="H_Converter_FullscreenCarousel_LeftShifter">
        <MultiConverterEntry Converter="{Clamp Max=0, Min=-292}"/>
        <MultiConverterEntry Converter="{LinearTransformConverter Scale=1}" TargetType="Double"/>
    </MultiConverter>

    <Style x:Key="H_Style_FullScreenCarousel_Separator"
           TargetType="ListBoxItem">
        <Setter Property="Focusable" Value="False" />
        <Setter Property="Width" Value="21" />
        <Setter Property="Height" Value="{Convert {StaticResource H_Height_FullScreenCarousel}, Converter={LinearTransformConverter Add=-11}}" />
        <Setter Property="Margin" Value="-8,0,0,0" /> <!-- Items have a 8 right-margin on them as padding, counter for this so we're centered -->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid Width="4">
                        <FZMaterial
                            Color="{StaticResource H_Color_Primary_Black}"/>

                        <FZMaterial Preset="{GlassRoundtangle BasedOn={StaticResource H_GlassRoundtangle_3px}, CornerRadius=0}" Color="#00ffffff" Opacity="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_OpacityShifter_Min}}"/>
                        <FZMaterial Preset="{GlassRoundtangle BasedOn={StaticResource H_GlassRoundtangle_3px}, CornerRadius=0}" Color="#00ffffff" Opacity="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_OpacityShifter_Max}}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="MultiDataConversion.Value"
            Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}" />
        <Setter
            Property="MultiDataConversion.Parameter"
            Value="{Binding (VirtualizingWrapPanel.ItemOffset), RelativeSource={RelativeSource Self}, Converter={LinearTransformConverter Add=-620}}" />
        <Setter
            Property="MultiDataConversion.TargetType"
            Value="{Type Double}" />
        <Setter
            Property="MultiDataConversion.Converter"
            Value="{MathOperationConverter Operation={Static XAMLMathOperation.Add}}" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform X="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_LeftShifter}}"/>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate
        x:Key="H_Template_FullScreenCarousel" 
        TargetType="{x:Type WrapListBox}">
        <VirtualizingWrapPanel
            IsItemsHost="True"
            OverrideAcrossNavigation="{TemplateBinding OverrideAcrossNavigation}"
            ScrollOrientation="Horizontal"
            ItemWidth="{TemplateBinding ItemWidth}"
            ItemHeight="{TemplateBinding ItemHeight}"
            EmptyItemStyle="{TemplateBinding EmptyItemStyle}"
            SeparatorItemStyle="{StaticResource H_Style_FullScreenCarousel_Separator}"
            SeparatorPlacement="{Binding SeparatorPlacementFunc, RelativeSource={RelativeSource AncestorType=Page}}"
            SelectionLimitTop="{TemplateBinding SelectionLimitTop}"
            SelectionLimitBottom="{TemplateBinding SelectionLimitBottom}"
            Tag="{TemplateBinding WrapSelection}"                                                     
            ScrollWindowMin="{Binding ScrollWindowMin, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWayToSource}"
            ScrollWindowMax="{Binding ScrollWindowMax, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWayToSource}"
            ScrollWindowSize="{Binding ScrollWindowSize, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWayToSource}"
            ScrollWindowValue="{Binding ScrollWindowValue, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"                            
            Style="{StaticResource H_VirtualizingWrapPanel_Default}">
            <!-- TODO: Add motion blur effect, it looks very low res when added to this panel
               MotionBlurEffect.MotionBlurPositionXControl="{Binding (UIElement.RenderTransform).(TranslateTransform.X), RelativeSource={RelativeSource Self}}"
               Effect="{StaticResource A_MotionBlurEffect}"
            -->
            <VirtualizingWrapPanel.RenderTransform>
                <TranslateTransform
                    X="{Binding Path=(BlendValue.Output), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}" />
            </VirtualizingWrapPanel.RenderTransform>
        </VirtualizingWrapPanel>
    </ControlTemplate>

    <Style
        x:Key="H_Style_FullScreenCarousel_EmptyItemStyle"
        BasedOn="{StaticResource H_Style_Control_Carousel_EmptyItemStyle}"
        TargetType="Control">
        <Setter
            Property="Margin"
            Value="0,0,8,8" />
        <Setter
            Property="MultiDataConversion.Value"
            Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}" />
        <Setter
            Property="MultiDataConversion.Parameter"
            Value="{Binding (VirtualizingWrapPanel.ItemOffset), RelativeSource={RelativeSource Self}, Converter={LinearTransformConverter Add=-292}}" />
        <Setter
            Property="MultiDataConversion.TargetType"
            Value="{Type Double}" />
        <Setter
            Property="MultiDataConversion.Converter"
            Value="{MathOperationConverter Operation={Static XAMLMathOperation.Add}}" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform X="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_LeftShifter}}"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        TargetType="ListBoxItem"
        x:Key="H_Style_FullScreenCarousel_ContainerStyle"
        BasedOn="{StaticResource H_Style_ContentControl_Carousel_ContainerStyle}">
        <Setter
            Property="MultiDataConversion.Value"
            Value="{Binding (BlendValue.Output), RelativeSource={RelativeSource AncestorType=VirtualizingWrapPanel}}" />
        <Setter
            Property="MultiDataConversion.Parameter"
            Value="{Binding (VirtualizingWrapPanel.ItemOffset), RelativeSource={RelativeSource Self}, Converter={LinearTransformConverter Add=-292}}" />
        <Setter
            Property="MultiDataConversion.TargetType"
            Value="{Type Double}" />
        <Setter
            Property="MultiDataConversion.Converter"
            Value="{MathOperationConverter Operation={Static XAMLMathOperation.Add}}" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform X="{Binding (MultiDataConversion.Output), RelativeSource={RelativeSource AncestorType=ListBoxItem}, Converter={StaticResource H_Converter_FullscreenCarousel_LeftShifter}}"/>
            </Setter.Value>
        </Setter>
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem
                        Name="MouseRolloverCornerRadius"
                        DataType="CornerRadius"
                        Value="8" />
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="H_Style_FullScreenCarousel"
        TargetType="{x:Type WrapListBox}"
        BasedOn="{StaticResource {x:Type WrapListBox}}">
        <Setter 
            Property="ItemWidth"
            Value="332"/>
        <Setter 
            Property="ItemHeight"
            Value="252"/>
        <Setter
            Property="Template"
                Value="{StaticResource H_Template_FullScreenCarousel}" />
        <Setter
            Property="VerticalAlignment" 
                Value="Center" />
        <Setter
            Property="HorizontalAlignment" 
                Value="Center" />
        <Setter
            Property="OverrideAcrossNavigation" 
                Value="True" />
        <Setter
            Property="ItemContainerStyle"
                Value="{StaticResource H_Style_FullScreenCarousel_ContainerStyle}" />
        <Setter
            Property="EmptyItemStyle"
                Value="{StaticResource H_Style_FullScreenCarousel_EmptyItemStyle}" />
        <Setter
            Property="ScrollViewer.CanContentScroll" 
                Value="False" />
        <Setter
            Property="Height" 
                Value="{StaticResource H_Height_FullScreenCarousel}" />
        <Setter
            Property="Width" 
                Value="{Binding Width, RelativeSource={RelativeSource AncestorType=Page}}" />
    </Style>

    <Style
        x:Key="H_Style_FullScreenCarousel_TwoRows"
        TargetType="{x:Type WrapListBox}"
        BasedOn="{StaticResource H_Style_FullScreenCarousel}">
        <Setter Property="ItemWidth" Value="332" />
        <Setter Property="ItemHeight" Value="332" />
        <Setter Property="Height" Value="{StaticResource H_Height_FullScreenCarousel_TwoRows}" />
    </Style>

    <ColorAlias
        x:Key="H_Color_HorizonEditionGradientA" Color="{StaticResource A_Color_HorizonEditionGradientA}"/>
    <ColorAlias
        x:Key="H_Color_HorizonEditionGradientB" Color="{StaticResource A_Color_HorizonEditionGradientB}"/>

    <FZMaterialPresetRoundtangle x:Key="H_Preset_CarSelect_HorizonEdition"
        BasedOn="{Roundtangle}"
        GradientColorA="{StaticResource H_Color_HorizonEditionGradientA}"
        GradientColorB="{StaticResource H_Color_HorizonEditionGradientB}"
        GradientAngle="90"/>

    <MappingConverter x:Key="H_Converter_CarSelect_RarityToPreset" Default="{Roundtangle CornerRadius=2}">
        <MappingConverterEntry Key="{x:Static XAMLRarity.HorizonEdition}" Value="{Roundtangle BasedOn={StaticResource H_Preset_CarSelect_HorizonEdition}, CornerRadius=2}" />
    </MappingConverter>

    <DataTemplate x:Key="H_Template_ContentControl_SelectionItem">
        <FZTextBlock Text="{Binding DataContext, RelativeSource={RelativeSource Self}}"
                     x:Name="ComboBoxItem_Text"
                     Focusable="False"
                     VerticalAlignment="Center"
                     Margin="8,0,8,0"
                     Color="{StaticResource H_Color_Primary_Purple}"
                     CapHeight="16"
                     FontFamily="Horzion_A" />
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}"
                         Value="True">
                <Setter Property="Color"
                        TargetName="ComboBoxItem_Text"
                        Value="{StaticResource H_Color_Primary_White}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <Style x:Key="H_Style_Toggle_Button_Default"
           TargetType="ToggleButton">
        <Setter Property="ClickMode"
                Value="Press" />
        <Setter Property="Focusable"
                Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <FZMaterial x:Name="ToggleButton_Backing"
                                Color="{StaticResource H_Color_Primary_White}" />
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}"
                                     Value="True">
                            <Setter Property="Color"
                                    TargetName="ToggleButton_Backing"
                                    Value="{StaticResource H_Color_Primary_Pink}" />
                        </DataTrigger>
                        <Trigger Property="IsMouseOver"
                                 Value="true">
                            <Setter TargetName="ToggleButton_Backing"
                                    Property="Color"
                                    Value="{StaticResource H_Color_Primary_Pink}" />
                        </Trigger>
                        <Trigger Property="IsChecked"
                                 Value="true">
                            <Setter TargetName="ToggleButton_Backing"
                                    Property="Color"
                                    Value="{StaticResource H_Color_Primary_Pink}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="H_Style_Selected_Content_Default" 
           TargetType="ContentPresenter">
        <Setter Property="IsHitTestVisible"
                Value="False"/>
        <Setter Property="Margin"
                Value="0,0,0,0"/>
        <Setter Property="VerticalAlignment"
                Value="Center"/>
        <Setter Property="HorizontalAlignment"
                Value="Left" />
    </Style>
    
    <ControlTemplate x:Key="H_Template_ComboBox"
                     TargetType="{x:Type ComboBox}">
        <Grid>
            <ToggleButton x:Name="ToggleButton"
                          Style="{DynamicDataBinding ToggleButtonStyle, FallbackValue={StaticResource H_Style_Toggle_Button_Default}}"
                          IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
            </ToggleButton>

            <ContentPresenter x:Name="ContentSite"
                              Content="{TemplateBinding SelectionBoxItem}"
                              ContentTemplate="{StaticResource H_Template_ContentControl_SelectionItem}"
                              ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
                              Style="{DynamicDataBinding ContentSiteStyle, FallbackValue={StaticResource H_Style_Selected_Content_Default}}" />
            <!--<TextBox x:Name="PART_EditableTextBox"
                     Style="{x:Null}"
                     Template="{StaticResource ComboBoxTextBox}"
                     HorizontalAlignment="Left"
                     VerticalAlignment="Center"
                     Margin="3,3,23,3"
                     Focusable="True"
                     Background="Transparent"
                     Visibility="Hidden"
                     IsReadOnly="{TemplateBinding IsReadOnly}" />-->
            <Popup x:Name="Part_Popup"
                   Placement="Bottom"
                   HorizontalAlignment="Left"
                   IsOpen="{TemplateBinding IsDropDownOpen}"
                   AllowsTransparency="True"
                   Focusable="True"
                   VerticalOffset="4">
                <Grid x:Name="DropDown"
                      SnapsToDevicePixels="True"
                      HorizontalAlignment="Left"
                      MinWidth="{TemplateBinding ActualWidth}"
                      MinHeight="68"
                      MaxHeight="{TemplateBinding MaxDropDownHeight}">
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,0,0" >
                        <FZScrollViewer Style="{StaticResource A_Style_ScrollViewer_TextMenu}"
                                        CanContentScroll="True"
                                        AllowMouseWheelScrolling="True"
                                        HorizontalScrollBarVisibility="Disabled"
                                        VerticalScrollBarVisibility="{Binding (ScrollViewer.VerticalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}"
                                        IsAtTop="{Binding (local:FZScrollViewer.IsAtTop), Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                        IsAtBottom="{Binding (local:FZScrollViewer.IsAtBottom), Mode=OneWayToSource, RelativeSource={RelativeSource TemplatedParent}}"
                                        Focusable="False"
                                        HandleDirectionalInput="False"
                                        Orientation="Vertical"
                                        VerticalAlignment="Stretch"
                                        MaxHeight="{Binding MaxDropDownHeight, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}"
                                        Margin="0"
                                        x:Name="ScrollViewer">
                            <FZScrollViewer.Template>
                                <ControlTemplate TargetType="ScrollViewer">
                                    <DockPanel Focusable="False">
                                        <ScrollBar DockPanel.Dock="Right"
                                                   Minimum="0"
                                                   HorizontalAlignment="Left"
                                                   VerticalAlignment="Stretch"
                                                   Maximum="{Binding ScrollableHeight, ElementName=ScrollViewer}"
                                                   ViewportSize="{Binding ViewportHeight, ElementName=ScrollViewer}"
                                                   Value="{Binding VerticalOffset, ElementName=ScrollViewer}"
                                                   Visibility="{Binding ComputedVerticalScrollBarVisibility, ElementName=ScrollViewer}"
                                                   Style="{StaticResource A_Style_ScrollBar_TextMenu}"
                                                   MaxHeight="{Binding MaxDropDownHeight, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}"
                                                   Margin="8,0,4,0"
                                                   x:Name="PART_VerticalScrollBar">
                                            <DynamicData.Data>
                                                <DynamicDataSource>
                                                    <DynamicDataItem Name="ScrollBarBackgroundMaterial"
                                                                     DataType="Style">
                                                        <Style TargetType="local:FZMaterial">
                                                            <Setter Property="Color"
                                                                    Value="#696969" />
                                                            <Setter Property="Opacity"
                                                                    Value="0.8" />
                                                            <Setter Property="Preset">
                                                                <Setter.Value>
                                                                    <FZMaterialPresetRoundtangle CornerRadius="4" />
                                                                </Setter.Value>
                                                            </Setter>
                                                        </Style>
                                                    </DynamicDataItem>
                                                </DynamicDataSource>
                                            </DynamicData.Data>
                                        </ScrollBar>
                                        <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
                                                                Content="{TemplateBinding Content}"
                                                                MaxWidth="1920"
                                                                CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}" />
                                    </DockPanel>
                                </ControlTemplate>
                            </FZScrollViewer.Template>
                            <FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                        Preset="{StaticResource H_Roundtangle_Outer_1px}">
                                <StackPanel IsItemsHost="True"
                                            KeyboardNavigation.DirectionalNavigation="Contained" />
                            </FZMaterial>
                        </FZScrollViewer>
                    </Grid>
                </Grid>
            </Popup>
        </Grid>
    </ControlTemplate>

    <BitmapImage x:Key="A_BitmapImage_Timer" UriSource="/ForzaUI;component/Textures/Anthem/Icons/Timer_Filled.png"/>
    <BitmapImage x:Key="A_BitmapImage_Credits" UriSource="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_48_FilledCircle.png"/>

    <MappingConverter x:Key="A_Converter_StatTypes_to_ImageSource" Default="-">
        <MappingConverterEntry Key="{x:Static local:StatTypes.XP}" Value="/ForzaUI;component/Textures/Anthem/Icons/XPIcon/EN/XP_76_Round.png"/>
        <MappingConverterEntry Key="{x:Static local:StatTypes.SkillTokens}" Value="/ForzaUI;component/Textures/Anthem/Icons/Garage/Tokens.png"/>
        <MappingConverterEntry Key="{x:Static local:StatTypes.Credits}" Value="{StaticResource A_BitmapImage_Credits}"/>
        <MappingConverterEntry Key="{x:Static local:StatTypes.Fans}" Value="/ForzaUI;component/Textures/Anthem/Icons/FansIcon/Fans_76_Inverted.png"/>
        <MappingConverterEntry Key="{x:Static local:StatTypes.Time}" Value="{StaticResource A_BitmapImage_Timer}"/>
    </MappingConverter>

    <CompareConverter x:Key="A_Converter_StatTypes_to_Image_Visibility"
                      Value="{x:Static local:StatTypes.None}"
                      Equal="{x:Static Visibility.Collapsed}"
                      NotEqual="{x:Static Visibility.Visible}"/>

    <ControlTemplate x:Key="H_Template_TileishButton"
        TargetType="FZButton">
        <Grid>
            <FZMaterial x:Name="item_background"
                Color="{StaticResource H_Color_Primary_White}"
                Preset="{Roundtangle CornerRadius=8}" />
            <ContentPresenter />
            <StrokeHighlightControl x:Name="FocusHighlight"
                              Style="{StaticResource H_Style_StrokeHighlight_Animated}"
                              InnerColor="{StaticResource H_Color_Primary_Black}"
                              OuterColor="{StaticResource H_Color_Primary_White}"
                              OuterThickness="4"
                              InnerThickness="4"
                              ContentRadius="{Binding Preset.CornerRadius, ElementName=item_background, FallbackValue=3}"
                              Opacity="0" />
        </Grid>
    </ControlTemplate>

    <Style x:Key="H_Style_TileishButtonInList"
        TargetType="FZButton">
        <!-- set ManualPassthroughProperty.Input to what you want the screen reader to read when highlighted -->
        <!--Setter Property="local:ManualPassthroughProperty.Input"
            Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_TrimInlineMarkupAndNewlines}}"/-->
        <Setter Property="local:ManualPassthroughProperty.Allowed"
            Value="{Binding IsKeyboardFocused, RelativeSource={RelativeSource Self}}"/>
        <Setter Property="local:ScreenReader.Line"
            Value="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="local:ScreenReader.Event"
            Value="OnChange" />
        <Setter Property="local:ScreenReader.ControlType"
            Value="Button" />
        <Setter Property="local:ScreenReader.LineType"
            Value="SelectedItem" />
        <Setter Property="local:AccumulateSelfOnParent.ParentType"
            Value="{x:Type ItemsSelector}" />
        <Setter Property="local:FindSelfIndexInCollection.Collection"
            Value="{Binding (local:AccumulateSelfOnParent.Output), RelativeSource={RelativeSource AncestorType={x:Type ItemsSelector}}}" />
        <Setter Property="local:ScreenReader.SelectedNumber"
            Value="{Binding (local:FindSelfIndexInCollection.Index), RelativeSource={RelativeSource Self}, Converter={StaticResource A_IndexToNumberConverter}, FallbackValue=0}" />
        <Setter Property="local:ScreenReader.SelectedCount"
            Value="{Binding (local:AccumulateSelfOnParent.Output).Count, RelativeSource={RelativeSource AncestorType={x:Type ItemsSelector}}, FallbackValue=0}" />

        <Setter Property="ClickMode"
            Value="{x:Static ClickMode.Press}"/>

        <Setter Property="Template"
            Value="{StaticResource H_Template_TileishButton}"/>
    </Style>

    <MappingConverter x:Key="A_Converter_LinkSkillGrade_to_ImageSource" Default="-">
        <MappingConverterEntry Key="0" Value="/ForzaUI;component/Textures/Anthem/HUD/LINKSkills/LINK_Skill_Icon.png"/>
        <MappingConverterEntry Key="1" Value="/ForzaUI;component/Textures/Anthem/HUD/LINKSkills/LINK_Skill_Icon.png"/>
        <MappingConverterEntry Key="2" Value="/ForzaUI;component/Textures/Anthem/HUD/LINKSkills/LINK_Skill_Icon.png"/>
        <MappingConverterEntry Key="3" Value="/ForzaUI;component/Textures/Anthem/HUD/LINKSkills/LINK_Skill_Icon.png"/>
    </MappingConverter>

    <Thickness x:Key="A_Thickness_BgEllipseMargins">-200,-72</Thickness>
    <Double x:Key="A_Double_BgEllipsePaddingW">400</Double>
    <Double x:Key="A_Double_BgEllipsePaddingH">144</Double>
    <Style
        x:Key="H_Style_FZMaterial_BgEllipse_CircleShadow"
        TargetType="{Type FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_BgEllipse}" />
        <Setter Property="Preset">
            <Setter.Value>
                <FZMaterialPresetRoundtangle Softness="{StaticResource A_Double_BgEllipse_Softness}" CornerRadius="50"/>
            </Setter.Value>
        </Setter>
        <Setter Property="Width" Value="100" />
        <Setter Property="Height" Value="100" />
    </Style>
    
    <Style
        x:Key="H_Style_FZMaterial_HudBgEllipse_CircleShadow"
        BasedOn="{StaticResource H_Style_FZMaterial_BgEllipse_CircleShadow}"
        TargetType="{Type FZMaterial}">
        <Setter Property="Color" Value="{StaticResource A_Color_HudBgEllipse}" />
    </Style>

</ResourceDictionary>
