<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Double
        x:Key="A_Double_LoadingSpinner_Height">59</Double>
    <Double 
        x:Key="A_Double_OptionsItemOpacity_Disabled">0.6</Double>

    <Style
        x:Key="A_Style_BlankVisualStyle"
        TargetType="FrameworkElement" />
    
    <Style
        x:Key="A_Style_Control_ScreenBackground"
        TargetType="{Type Control}">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <Grid>
                        <FZMaterial x:Name="GlassScreenBg"
                            Style="{StaticResource A_Style_FZMaterial_Glass_ScreenBackground}" />
                        <FZMaterialGlassCapture />
                        <Decorator Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
                            <Decorator Style="{StaticResource A_Style_FrameworkElement_ShowUntilReadyToTransition_Transition_0}">
                                <ContentControl Style="{StaticResource A_Style_ContentControl_LoadingSpinnerWithMessage}"
                                                Content="{Binding IsReadyToPlayIntroLoadingString}"
                                                Visibility="{Binding IsReadyToPlayIntroLoadingString, Converter={StaticResource A_StringVisConverter}}" />
                            </Decorator>
                        </Decorator>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_FZTextBlock_ScreenTitleBlockText"
        TargetType="local:FZTextBlock"
        BasedOn="{StaticResource A_Style_FZTextBlock_Title}">
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_ScreenTitle_Text}" />
        <Setter
            Property="FontSize"
            Value="46" />
        <Setter
            Property="TrackingAdjust"
            Value="0.02" />
    </Style>
    <Style
        x:Key="A_Style_FZMaterial_ShadowBase"
        TargetType="{Type local:FZMaterial}">
        <Setter
            Property="RenderTransformOrigin"
            Value="0.5,0.5" />
        <Setter
            Property="IsHitTestVisible"
            Value="False" />
        <Setter
            Property="Preset">
            <Setter.Value>
                <FZMaterialPresetSelfShadow
                    Softness="30" />
            </Setter.Value>
        </Setter>
        <Setter
            Property="Margin"
            Value="-10,-10,-10,-10" />
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_UISelfShadow}" />
    </Style>
    <Style
        x:Key="A_Style_FZMaterial_ShadowBase_ForSubgraph"
        TargetType="{Type local:FZMaterial}">
        <Setter
            Property="RenderTransformOrigin"
            Value="0.5,0.5" />
        <Setter
            Property="IsHitTestVisible"
            Value="False" />
        <Setter
            Property="Preset">
            <Setter.Value>
                <FZMaterialPresetRoundtangle
                    Softness="30"
                    CornerRadius="20"
                    AlphaMode="MultiplyInvColorOnly"
                    Unlit="True" />
            </Setter.Value>
        </Setter>
        <Setter
            Property="Margin"
            Value="-16,-16,-16,-16" />
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_UISelfShadow_ForSubgraph}" />
    </Style>
    <Thickness
        x:Key="A_Thickness_ShadowMargin_Dynamic">-25,-25,-25,-25</Thickness>
    <Style
        x:Key="A_Style_FZMaterial_ShadowBase_Dynamic"
        TargetType="{Type local:FZMaterial}"
        BasedOn="{StaticResource A_Style_FZMaterial_ShadowBase}">
        <Setter
            Property="Preset">
            <Setter.Value>
                <FZMaterialPresetSelfShadow
                    Softness="20"
                    CornerRadius="25" />
            </Setter.Value>
        </Setter>
        <Setter
            Property="Margin"
            Value="{DynamicResource A_Thickness_ShadowMargin_Dynamic}" />
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_UISelfShadow_ForSubgraph}" />
    </Style>
    <Style
        x:Key="A_Style_ContentControl_Header_Custom"
        TargetType="ContentControl">
        <Setter
            Property="HorizontalContentAlignment"
            Value="Center" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="MinWidth"
            Value="364" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <FZMaterial
                        Style="{StaticResource H_Style_Container_DescriptionTitle}">
                        <ContentPresenter
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_ContentControl_Header"
        TargetType="ContentControl">
        <Setter
            Property="HorizontalContentAlignment"
            Value="Center" />
        <Setter
            Property="VerticalContentAlignment"
            Value="Center" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <ContentControl
                        Style="{StaticResource A_Style_ContentControl_Header_Custom}"
                        HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                        VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                        MinWidth="{TemplateBinding MinWidth}">
                        <FZTextBlock
                            Style="{StaticResource H_Style_Text_DescriptionTitle}"
                            Text="{TemplateBinding Content}"/>
                    </ContentControl>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_FZTextBlock_IconBarText"
        TargetType="local:FZTextBlock"
        BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter
            Property="CapHeight"
            Value="28" />
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_CarDetails_Text}" />
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Margin"
            Value="4,17.5,16,17.5" />
    </Style>
    <Style
        x:Key="A_Style_ContentControl_ScreenTitleBlock"
        TargetType="ContentControl"
        BasedOn="{StaticResource H_Style_TemplatedWrapper_ScreenTitle}" />
    <Style
        x:Key="A_Style_ContentControl_ScreenTitleBlockWithMarkup"
        TargetType="ContentControl"
        BasedOn="{StaticResource H_Style_TemplatedWrapper_ScreenTitleWithMarkup}" />
    <Style
        x:Key="A_Style_Control_MouseRollover_Outer_All"
        TargetType="{Type Control}"
        BasedOn="{StaticResource H_Style_TemplatedElement_MouseRollover}" />
    <Style
        x:Key="A_Style_ContentControl_DefaultButtonBar"
        TargetType="ContentControl">
        <Setter
            Property="Canvas.Bottom"
            Value="0" />
        <Setter
            Property="Canvas.Left"
            Value="0" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <ControllerButtonPanel
                        x:Name="PART_DefaultHelpPanel"
                        Layout="RightToLeft"
                        HorizontalAlignment="Left"
                        Margin="0,0,0,0"
                        Background="{Null}">
                        <ControllerButtonControl
                            x:Name="ButtonA"
                            Button="A"
                            Description="{Binding (local:ControllerButtonPanel.ADescription), Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.ADescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonB"
                            Button="B"
                            Description="{Binding (local:ControllerButtonPanel.BDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.BDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonX"
                            Button="X"
                            Description="{Binding (local:ControllerButtonPanel.XDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.XDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonY"
                            Button="Y"
                            Description="{Binding (local:ControllerButtonPanel.YDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.YDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonBack"
                            Button="Back"
                            Description="{Binding (local:ControllerButtonPanel.BackDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.BackDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonStart"
                            Button="Start"
                            Description="{Binding (local:ControllerButtonPanel.StartDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.StartDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonLBumper"
                            Button="LBumper"
                            Description="{Binding (local:ControllerButtonPanel.LBumperDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.LBumperDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonRBumper"
                            Button="RBumper"
                            Description="{Binding (local:ControllerButtonPanel.RBumperDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.RBumperDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonLTrigger"
                            Button="LTrigger"
                            Description="{Binding (local:ControllerButtonPanel.LTriggerDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.LTriggerDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonRTrigger"
                            Button="RTrigger"
                            Description="{Binding (local:ControllerButtonPanel.RTriggerDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.RTriggerDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadHorizontal"
                            Button="DPadHorizontal"
                            Description="{Binding (local:ControllerButtonPanel.DPadHorizontalDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadHorizontalDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadVertical"
                            Button="DPadVertical"
                            Description="{Binding (local:ControllerButtonPanel.DPadVerticalDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadVerticalDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadUp"
                            Button="DPadUp"
                            Description="{Binding (local:ControllerButtonPanel.DPadUpDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadUpDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadDown"
                            Button="DPadDown"
                            Description="{Binding (local:ControllerButtonPanel.DPadDownDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadDownDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadLeft"
                            Button="DPadLeft"
                            Description="{Binding (local:ControllerButtonPanel.DPadLeftDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadLeftDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonDPadRight"
                            Button="DPadRight"
                            Description="{Binding (local:ControllerButtonPanel.DPadRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.DPadLeftDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonLThumb"
                            Button="LThumb"
                            Description="{Binding (local:ControllerButtonPanel.LThumbDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.LThumbDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonLThumbLeftRight"
                            Button="LThumb_LeftRight"
                            Description="{Binding (local:ControllerButtonPanel.LThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.LThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonRThumb"
                            Button="RThumb"
                            Description="{Binding (local:ControllerButtonPanel.RThumbDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.RThumbDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonRThumbLeftRight"
                            Button="RThumb_LeftRight"
                            Description="{Binding (local:ControllerButtonPanel.RThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.RThumbLeftRightDescription), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonR3"
                            Button="R3"
                            Description="{Binding (local:ControllerButtonPanel.R3Description), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.R3Description), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                        <ControllerButtonControl
                            x:Name="ButtonL3"
                            Button="L3"
                            Description="{Binding (local:ControllerButtonPanel.L3Description), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}}"
                            Visibility="{Binding (local:ControllerButtonPanel.L3Description), RelativeSource={RelativeSource FindAncestor, AncestorType={Type ContentControl}}, Converter={StaticResource A_StringVisConverter}}"
                            Reusable="True" />
                    </ControllerButtonPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate
        x:Key="A_ControlTemplate_ProgressBar_WaitSpinnerAnimated"
        TargetType="{Type ProgressBar}">
        <Grid>
            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup
                    x:Name="CommonStates">
                    <VisualState
                        x:Name="PART_Determinate" />
                    <VisualState
                        x:Name="PART_Indeterminate" />
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>
            <Border
                x:Name="PART_Track"
                Visibility="Collapsed" />
            <Border
                x:Name="PART_Indicator"
                Visibility="Collapsed" />
            <FZMaterial
                x:Name="LoadingRing"
                Color="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_TypeSafeConverter}}">
                <FZMaterial.Preset>
                    <FZMaterialPresetLoadingSpinner
                        x:Name="LoadingRingPreset"
                        DotRadius="{DynamicResource A_Double_LoadingSpinner_DotRadius_Dynamic}"
                        OrbitRadius="{DynamicResource A_Double_LoadingSpinner_OrbitRadius_Dynamic}" />
                </FZMaterial.Preset>
            </FZMaterial>
        </Grid>
        <ControlTemplate.Triggers>
            <!--MultiDataTrigger>
                <MultiDataTrigger.Conditions>
                    <Condition
                        Binding="{Binding IsVisible, RelativeSource={RelativeSource Self}}"
                        Value="True" />
                    <Condition
                        Binding="{Binding Opacity, ConverterParameter=0, RelativeSource={RelativeSource Self}, Converter={StaticResource A_CompareConverter}}"
                        Value="1" />
                    <Condition
                        Binding="{Binding IsInitialized, RelativeSource={RelativeSource AncestorType=Page}}"
                        Value="{StaticResource A_Boolean_True}" />
                </MultiDataTrigger.Conditions>
                <MultiDataTrigger.EnterActions>
                    <BeginStoryboard
                        x:Name="BeginSpinAnim"
                        Storyboard="{StaticResource A_UIStoryboard_Spin}" />
                </MultiDataTrigger.EnterActions>
                <MultiDataTrigger.ExitActions>
                    <StopStoryboard
                        BeginStoryboardName="BeginSpinAnim" />
                </MultiDataTrigger.ExitActions>
            </MultiDataTrigger-->
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style
        x:Key="A_Style_ProgressBar_WaitSpinner"
        TargetType="{Type ProgressBar}">
        <Style.Resources>
            <ResourceDictionary>
                <Double
                    x:Key="A_Double_LoadingSpinner_DotRadius_Dynamic">0.22</Double>
                <Double
                    x:Key="A_Double_LoadingSpinner_OrbitRadius_Dynamic">0.78</Double>
            </ResourceDictionary>
        </Style.Resources>
        <Setter
            Property="Height"
            Value="59" />
        <Setter
            Property="Width"
            Value="{Binding Height, RelativeSource={RelativeSource Self}}" />
        <Setter
            Property="Margin"
            Value="0,0" />
        <Setter
            Property="IsIndeterminate"
            Value="True" />
        <Setter
            Property="Tag"
            Value="{StaticResource A_Color_LoadingSpinner_Default}" />
        <Setter
            Property="Template"
            Value="{StaticResource A_ControlTemplate_ProgressBar_WaitSpinnerAnimated}" />
    </Style>
    <Style
        x:Key="A_Style_ProgressBar_WaitSpinnerDark"
        TargetType="{Type ProgressBar}"
        BasedOn="{StaticResource A_Style_ProgressBar_WaitSpinner}">
        <Setter
            Property="Tag"
            Value="{StaticResource A_Color_LoadingSpinner_Dark}" />
    </Style>
    <Style
        x:Key="A_Style_ProgressBar_WaitSpinner_Reverse"
        TargetType="{Type ProgressBar}"
        BasedOn="{StaticResource A_Style_ProgressBar_WaitSpinner}">
        <Setter
            Property="RenderTransformOrigin"
            Value="0.5,0.5" />
        <Setter
            Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform
                    ScaleX="-1" />
            </Setter.Value>
        </Setter>
    </Style>
    <MappingConverter x:Key="A_Converter_CheckBox_VisiblityToReaderOptions">
        <MappingConverterEntry Key="{x:Static Visibility.Visible}" Value="{Loc ButtonPanel.IDS_Enabled}"/>
        <MappingConverterEntry Key="{x:Static Visibility.Hidden}" Value="{Loc ButtonPanel.IDS_Disabled}"/>
        <MappingConverterEntry Key="{x:Static Visibility.Collapsed}" Value="{Loc ButtonPanel.IDS_Disabled}"/>
    </MappingConverter>

    <Style
        x:Key="A_Style_Control_Checkbox"
        TargetType="Control">
        <Setter
            Property="Tag"
            Value="False" />
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Height"
            Value="24" />
        <Setter
            Property="Width"
            Value="24" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <Grid>
                        <FZMaterial
                            x:Name="Off"
                            GreedyMeasure="True"
                            Color="{StaticResource A_Color_TextMenu_Text_Default}"
                            ImageSource="\Textures\Data_Bound\Checkbox\Checkbox_Off.png" />
                        <FZMaterial
                            x:Name="On"
                            GreedyMeasure="True"
                            Visibility="Hidden"
                            Color="{StaticResource A_Color_TextMenu_Text_Default}"
                            ImageSource="\Textures\Data_Bound\Checkbox\Checkbox_On.png" />
                        <FrameworkElement 
                            x:Name="Reader"
                            ScreenReader.LineType="SelectedValue"
                            ScreenReader.Event="OnChange"
                            ScreenReader.ControlType="Button"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="Tag">
                            <Trigger.Value>
                                <Boolean>True</Boolean>
                            </Trigger.Value>
                            <Setter
                                TargetName="On"
                                Property="Visibility"
                                Value="Visible" />
                            <Setter
                                TargetName="Off"
                                Property="Visibility"
                                Value="Hidden" />
                        </Trigger>
                        <DataTrigger
                            Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}"
                            Value="True">
                            <Setter
                                TargetName="Off"
                                Property="Color"
                                Value="{StaticResource A_Color_TextMenu_Text_Highlighted}" />
                            <Setter
                                TargetName="On"
                                Property="Color"
                                Value="{StaticResource A_Color_TextMenu_Text_Highlighted}" />
                            <Setter 
                                TargetName="Reader"
                                Property="ScreenReader.Line" 
                                Value="{Binding Visibility, Converter={StaticResource A_Converter_CheckBox_VisiblityToReaderOptions}, ElementName=On}"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <FZGeometry
        x:Key="A_FZGeometry_Default" />
    <Style
        x:Key="A_Style_Control_CarClassBadge_Only_Class"
        TargetType="{Type Control}"
        BasedOn="{StaticResource H_Style_TemplatedElement_CarClassBadgeOnly}" />
    <Style
        x:Key="A_Style_Control_CarClassBadge_Small_Default"
        TargetType="{Type Control}"
        BasedOn="{StaticResource H_Style_TemplatedElement_CarClassBadge}" />
    <Style
        x:Key="A_Style_Control_CarClassBadge_Small"
        TargetType="{Type Control}"
        BasedOn="{StaticResource A_Style_Control_CarClassBadge_Small_Default}" />
    <Style
        x:Key="A_Style_Control_AdvancedCarRestrictions"
        TargetType="{Type Control}"
        BasedOn="{StaticResource A_Style_Control_CarClassBadge_Small_Default}" />
    <Style
        x:Key="A_Style_FZTextBlock_OptionText_Base"
        TargetType="local:FZTextBlock"
        BasedOn="{StaticResource H_Style_Text_ListOption_16px}" />
    <Style
        x:Key="A_Style_FZTextBlock_OptionText"
        BasedOn="{StaticResource A_Style_FZTextBlock_OptionText_Base}"
        TargetType="local:FZTextBlock" />
    <Style
        x:Key="A_Style_FZTextBlock_ControllerMappingLabel"
        BasedOn="{StaticResource A_Style_FZTextBlock_Heading_Small}"
        TargetType="{Type local:FZTextBlock}">
        <Setter
            Property="FontFamily"
            Value="Horizon_A" />
        <Setter
            Property="TextWrapping"
            Value="Wrap" />
        <Setter
            Property="CapHeight"
            Value="15" />
        <Setter
            Property="Color"
            Value="{StaticResource A_Color_SubHeader_Text}" />
        <Setter
            Property="Margin"
            Value="24,12" />
    </Style>
    <Style
        x:Key="A_Style_FZTextBlock_ControllerMappingLabel_Left"
        BasedOn="{StaticResource A_Style_FZTextBlock_ControllerMappingLabel}"
        TargetType="{Type local:FZTextBlock}">
        <Setter
            Property="TextAlignment"
            Value="Right" />
        <Setter
            Property="HorizontalAlignment"
            Value="Right" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="TextWrapping"
            Value="NoWrap" />
    </Style>
    <Style
        x:Key="A_Style_FZTextBlock_ControllerMappingLabel_Right"
        BasedOn="{StaticResource A_Style_FZTextBlock_ControllerMappingLabel}"
        TargetType="{Type local:FZTextBlock}">
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="TextWrapping"
            Value="NoWrap" />
    </Style>
    <Style
        x:Key="A_ControllerLabel_Path"
        TargetType="Path">
        <Setter
            Property="Stroke"
            Value="White" />
        <Setter
            Property="StrokeThickness"
            Value="2" />
        <Setter
            Property="Opacity"
            Value="0.2" />
    </Style>
    <Style
        x:Key="A_Style_FZMaterial_ControllerLabelBacking"
        BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}"
        TargetType="local:FZMaterial">
        <Setter
            Property="Color"
            Value="#26000000" />
    </Style>
    <Style
        x:Key="A_Style_ContentControl_ControllerLabel"
        TargetType="ContentControl">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <FZMaterial
                        Style="{StaticResource A_Style_FZMaterial_ControllerLabelBacking}"
                        MaxWidth="550"
                        MaxHeight="80">
                        <FZTextBlock
                            Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"
                            Style="{DynamicResource A_Style_FZTextBlock_ControllerMappingLabel_Dynamic}" />
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_ContentControl_ControllerLabel_Right"
        BasedOn="{StaticResource A_Style_ContentControl_ControllerLabel}"
        TargetType="ContentControl">
        <Style.Resources>
            <ResourceDictionary>
                <Style
                    x:Key="A_Style_FZTextBlock_ControllerMappingLabel_Dynamic"
                    BasedOn="{StaticResource A_Style_FZTextBlock_ControllerMappingLabel_Right}"
                    TargetType="local:FZTextBlock" />
            </ResourceDictionary>
        </Style.Resources>
    </Style>
    <Style
        x:Key="A_Style_ContentControl_ControllerLabel_Left"
        BasedOn="{StaticResource A_Style_ContentControl_ControllerLabel}"
        TargetType="ContentControl">
        <Style.Resources>
            <ResourceDictionary>
                <Style
                    x:Key="A_Style_FZTextBlock_ControllerMappingLabel_Dynamic"
                    BasedOn="{StaticResource A_Style_FZTextBlock_ControllerMappingLabel_Left}"
                    TargetType="local:FZTextBlock" />
            </ResourceDictionary>
        </Style.Resources>
    </Style>
    <Style
        x:Key="A_Style_Control_ControllerMapping"
        TargetType="Control">
        <Setter
            Property="HorizontalAlignment"
            Value="Center" />
        <Setter
            Property="VerticalAlignment"
            Value="Center" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid
                        DataContext="{Binding CurrentControls}">
                        <Canvas
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Width="512"
                            Height="512">
                            <FZMaterial
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Width="512"
                                Height="512"
                                ImageSourceNoPreload="/Textures/Data_Bound/UI_Symbols/Help_Controller.png" />
                            <Canvas
                                HorizontalAlignment="Right">
                                <Canvas
                                    Visibility="{Binding LTString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,65 40,65 112, 105"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LTString}"
                                        Canvas.Right="10"
                                        Canvas.Top="43" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding LBString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,158 40,128 112,128"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LBString}"
                                        Canvas.Right="10"
                                        Canvas.Top="139" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding LThumbString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,243 124,243"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LThumbString}"
                                        Canvas.Right="10"
                                        Canvas.Top="224" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding DPadUpString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,288 189,288"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadUpString}"
                                        Canvas.Right="10"
                                        Canvas.Top="269" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding DPadLeftString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,345 120,345 145,310 165,310"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadLeftString}"
                                        Canvas.Right="10"
                                        Canvas.Top="326" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding DPadDownString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M -10,430 88,430 155,330 189,330"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadDownString}"
                                        Canvas.Right="10"
                                        Canvas.Top="411" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding DPadRightString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 214,310 214,492 200,492"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadRightString}"
                                        Canvas.Right="-200"
                                        Canvas.Top="473" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding BackString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 206,35 218,35 218,229"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding BackString}"
                                        Canvas.Right="-206"
                                        Canvas.Top="16" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding StartString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 304,35 293,35 293,229"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding StartString}"
                                        Canvas.Left="304"
                                        Canvas.Top="16" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RTString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,65 476,65 400,105"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding RTString}"
                                        Canvas.Left="521"
                                        Canvas.Top="46" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RBString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,128 400,128"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding RBString}"
                                        Canvas.Left="521"
                                        Canvas.Top="109" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding YString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,178 440,178 425,200 405,200"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding YString}"
                                        Canvas.Left="521"
                                        Canvas.Top="159" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding BString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,230 439,230"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding BString}"
                                        Canvas.Left="521"
                                        Canvas.Top="211" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding XString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,281 440,281 389,230 371,230"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding XString}"
                                        Canvas.Left="521"
                                        Canvas.Top="262"
                                        MaxHeight="39" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding AString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,325 440,325 390,279"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding AString}"
                                        Canvas.Left="521"
                                        Canvas.Top="306" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RThumb1String, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 521,430 405,430 335,335"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding RThumb1String}"
                                        Canvas.Left="521"
                                        Canvas.Top="411" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RThumb2String, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 341,492 323,492 323,316"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding RThumb2String}"
                                        Canvas.Left="341"
                                        Canvas.Top="474" />
                                </Canvas>
                            </Canvas>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_Control_WheelMapping"
        TargetType="Control">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid
                        DataContext="{Binding CurrentControls}"
                        Margin="0, -200, 0, 0">
                        <Canvas
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Width="512"
                            Height="512">
                            <FZMaterial
                                HorizontalAlignment="Left"
                                VerticalAlignment="Center"
                                Width="512"
                                Height="512"
                                ImageSourceNoPreload="/Textures/Data_Bound/UI_Symbols/Help_Wheel.png" />
                            <Canvas
                                HorizontalAlignment="Right">
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding LThumbString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Style="{StaticResource A_ControllerLabel_Path}">
                                        <Geometry>M 0,76 120,76</Geometry>
                                    </Path>
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LThumbString}"
                                        Canvas.Right="0"
                                        Canvas.Top="59" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding LBString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,126 126,126 156,156"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LBString}"
                                        Canvas.Right="0"
                                        Canvas.Top="109" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding DPadUpString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,170 90,170 158,235"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadUpString}"
                                        Canvas.Right="0"
                                        Canvas.Top="153" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding DPadDownString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,324 113,324 158,279"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadDownString}"
                                        Canvas.Right="0"
                                        Canvas.Top="307" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding DPadRightString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,257 136,257"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding DPadRightString}"
                                        Canvas.Right="0"
                                        Canvas.Top="240" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding BackString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,417 40,417 217,257"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding BackString}"
                                        Canvas.Right="0"
                                        Canvas.Top="400" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RBString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,126 386,126 356,156"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding RBString}"
                                        Canvas.Left="512"
                                        Canvas.Top="109" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding YString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,215 366,215 355,225 355,225"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding YString}"
                                        Canvas.Left="512"
                                        Canvas.Top="196" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding BString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,255 384,255 "
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding BString}"
                                        Canvas.Left="512"
                                        Canvas.Top="237" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding XString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,297 393,297 353,255 340,255"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding XString}"
                                        Canvas.Left="512"
                                        Canvas.Top="278" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding AString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,337 411,337 359,285"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding AString}"
                                        Canvas.Left="512"
                                        Canvas.Top="319" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding StartString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 512,417 470,417 296,257"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding StartString}"
                                        Canvas.Left="512"
                                        Canvas.Top="400" />
                                </Canvas>
                            </Canvas>
                        </Canvas>
                        <Canvas
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Width="256"
                            Height="256"
                            Margin="0, 700, 0, 0">
                            <FZMaterial
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Width="256"
                                Height="256"
                                ImageSourceNoPreload="/Textures/Data_Bound/UI_Symbols/Help_Pedal.png" />
                            <Canvas
                                HorizontalAlignment="Right">
                                <Canvas
                                    HorizontalAlignment="Right">
                                    <Path
                                        Data="M 0,98 37,98"
                                        Style="{StaticResource A_ControllerLabel_Path}"
                                        Visibility="{Binding ClutchPathVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Loc MyProfile.IDS_Clutch}"
                                        Canvas.Right="0"
                                        Canvas.Top="79"
                                        Visibility="{Binding ClutchTextVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Loc MyProfile.IDS_Handbrake}"
                                        Canvas.Right="0"
                                        Canvas.Top="79"
                                        Visibility="{Binding InvertHandbrakeClutch, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                                </Canvas>
                                <Canvas
                                    HorizontalAlignment="Right"
                                    Visibility="{Binding LTString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 0,55 83,55 125,86"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Left}"
                                        Content="{Binding LTString}"
                                        Canvas.Right="0"
                                        Canvas.Top="38" />
                                </Canvas>
                                <Canvas
                                    Visibility="{Binding RTString, Converter={StaticResource A_StringVisConverter}}">
                                    <Path
                                        Data="M 257,96 215,96"
                                        Style="{StaticResource A_ControllerLabel_Path}" />
                                    <ContentControl
                                        Style="{StaticResource A_Style_ContentControl_ControllerLabel_Right}"
                                        Content="{Binding RTString}"
                                        Canvas.Left="257"
                                        Canvas.Top="78" />
                                </Canvas>
                            </Canvas>
                        </Canvas>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="A_Style_ContentControl_AnimatedTagSlideFromBottom">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <Grid
                        Height="{Binding ActualHeight, ElementName=Content}"
                        VerticalAlignment="Top"
                        ClipToBounds="True">
                        <StackPanel
                            Orientation="Vertical"
                            VerticalAlignment="Top">
                            <Grid
                                Height="{Binding ActualHeight, ElementName=Content}">
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform
                                            ScaleY="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                            </Grid>
                            <ContentPresenter
                                x:Name="Content" />
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Tag">
            <Setter.Value>
                <Double>0.0</Double>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="A_Style_ContentControl_AnimatedTagSlideFromTop">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <Grid
                        Height="{Binding ActualHeight, ElementName=Content}"
                        VerticalAlignment="Bottom"
                        ClipToBounds="True">
                        <StackPanel
                            Orientation="Vertical"
                            VerticalAlignment="Bottom">
                            <ContentPresenter
                                x:Name="Content" />
                            <Grid
                                Height="{Binding ActualHeight, ElementName=Content}">
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform
                                            ScaleY="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                            </Grid>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Tag">
            <Setter.Value>
                <Double>0.0</Double>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="A_Style_ContentControl_AnimatedTagSlideFromLeft">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <Grid
                        Width="{Binding ActualWidth, ElementName=Content}"
                        HorizontalAlignment="Left"
                        ClipToBounds="True">
                        <StackPanel
                            Orientation="Horizontal"
                            HorizontalAlignment="Right">
                            <ContentPresenter
                                x:Name="Content" />
                            <Grid
                                Width="{Binding ActualWidth, ElementName=Content}">
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform
                                            ScaleX="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                            </Grid>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Tag">
            <Setter.Value>
                <Double>0.0</Double>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        TargetType="ContentControl"
        x:Key="A_Style_ContentControl_AnimatedTagSlideFromRight">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="ContentControl">
                    <Grid
                        Width="{Binding ActualWidth, ElementName=Content}"
                        HorizontalAlignment="Right"
                        ClipToBounds="True">
                        <Grid.LayoutTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform />
                                <RotateTransform />
                                <TranslateTransform />
                            </TransformGroup>
                        </Grid.LayoutTransform>
                        <StackPanel
                            Orientation="Horizontal"
                            HorizontalAlignment="Left">
                            <Grid Width="{Binding ActualWidth, ElementName=Content}">
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform
                                            ScaleX="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                            </Grid>
                            <ContentPresenter
                                x:Name="Content"/>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="Tag">
            <Setter.Value>
                <Double>0.0</Double>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_ScrollBar_Default"
        TargetType="{Type ScrollBar}"
        BasedOn="{StaticResource H_Style_ScrollBar}" />
    <Style
        x:Key="A_Style_FZScrollViewer_Default_Horizontal"
        TargetType="{Type local:FZScrollViewer}">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type local:FZScrollViewer}">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition
                                Height="*" />
                            <RowDefinition
                                Height="Auto" />
                        </Grid.RowDefinitions>
                        <ScrollBar
                            x:Name="PART_HorizontalScrollBar"
                            Grid.Row="1"
                            Width="Auto"
                            Height="10"
                            Margin="0,0,4,36"
                            Orientation="Horizontal"
                            VerticalAlignment="Bottom"
                            Value="{TemplateBinding HorizontalOffset}"
                            Minimum="0"
                            Maximum="{TemplateBinding ScrollableWidth}"
                            ViewportSize="{TemplateBinding ViewportWidth}"
                            Style="{StaticResource A_Style_ScrollBar_Default}"
                            Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" />
                        <ScrollContentPresenter
                            Margin="0"
                            Content="{TemplateBinding Content}"
                            CanContentScroll="{TemplateBinding local:FZScrollViewer.CanContentScroll}"
                            ClipToBounds="false" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="local:FZScrollViewer.TopScrollOffset"
            Value="100" />
        <Setter
            Property="local:FZScrollViewer.BottomScrollOffset"
            Value="100" />
        <Setter
            Property="local:FZScrollViewer.Orientation"
            Value="Horizontal" />
        <Setter
            Property="HorizontalScrollBarVisibility"
            Value="{Binding (local:FZScrollViewer.HorizontalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}" />
        <Setter
            Property="VerticalScrollBarVisibility"
            Value="Disabled" />
    </Style>
    <Style
        x:Key="A_Style_FZScrollViewer_Default_Vertical"
        TargetType="{Type local:FZScrollViewer}">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type local:FZScrollViewer}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition
                                Width="*" />
                            <ColumnDefinition
                                Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <ScrollBar
                            x:Name="PART_VerticalScrollBar"
                            Grid.Column="1"
                            Width="10"
                            Height="{TemplateBinding ViewportHeight}"
                            Margin="4,0,0,0"
                            Orientation="Vertical"
                            VerticalAlignment="Bottom"
                            Value="{TemplateBinding VerticalOffset}"
                            Minimum="0"
                            Maximum="{TemplateBinding ScrollableHeight}"
                            ViewportSize="{TemplateBinding ViewportHeight}"
                            Style="{StaticResource A_Style_ScrollBar_Default}"
                            Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" />
                        <ScrollContentPresenter
                            Margin="0"
                            Content="{TemplateBinding Content}"
                            CanContentScroll="{TemplateBinding local:FZScrollViewer.CanContentScroll}"
                            ClipToBounds="false" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="local:FZScrollViewer.TopScrollOffset"
            Value="100" />
        <Setter
            Property="local:FZScrollViewer.BottomScrollOffset"
            Value="100" />
        <Setter
            Property="local:FZScrollViewer.Orientation"
            Value="Vertical" />
        <Setter
            Property="VerticalScrollBarVisibility"
            Value="{Binding (local:FZScrollViewer.VerticalScrollBarVisibility), RelativeSource={RelativeSource TemplatedParent}}" />
        <Setter
            Property="HorizontalScrollBarVisibility"
            Value="Disabled" />
    </Style>
    <Style
        x:Key="A_Style_Button_EmptyButton"
        TargetType="{Type local:FZButton}">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type local:FZButton}">
                    <ContentPresenter />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <ControlTemplate
        x:Key="A_ControlTemplate_Button_ClickableButtonWithMouseRollover"
        TargetType="local:FZButton">
        <Grid>
            <FZMaterial
                x:Name="Shadow"
                Color="{StaticResource A_Color_DropShadow}"
                Margin="-10"
                Opacity="1.0"
                IsHitTestVisible="False">
                <FZMaterial.Preset>
                    <FZMaterialPresetSelfShadow
                        Softness="20"
                        CornerRadius="20" />
                </FZMaterial.Preset>
            </FZMaterial>
            <FZMaterial
                x:Name="ButtonBackground"
                Color="{StaticResource H_Color_Primary_White}"
                Preset="{StaticResource H_Roundtangle_Outer_3px}" />
            <FZMaterial
                x:Name="MouseRollover"
                Visibility="Hidden"
                Color="{StaticResource H_Color_Primary_Green}">
                <FZMaterial.Preset>
                    <FZMaterialPresetRoundtangleStroke
                        CornerRadius="{Binding (DynamicData.Data).MouseRolloverCornerRadius, FallbackValue=3, RelativeSource={RelativeSource TemplatedParent}}"
                        Thickness="3" />
                </FZMaterial.Preset>
            </FZMaterial>
            <ContentPresenter />
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger
                Property="IsMouseOver"
                Value="True">
                <Setter
                    TargetName="MouseRollover"
                    Property="Visibility"
                    Value="Visible" />
            </Trigger>
            <Trigger
                Property="IsEnabled"
                Value="False">
                <Setter
                    TargetName="ButtonBackground"
                    Property="Color"
                    Value="{StaticResource H_Color_Glass_Purple_20pc}" />
                <Setter
                    TargetName="ButtonBackground"
                    Property="Preset"
                    Value="{StaticResource H_GlassRoundtangle_3px}" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
    <Style
        x:Key="A_Style_Control_CancelHideUIWithMouse"
        TargetType="Control">
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <RoutedEventCommand
                            x:Name="ShowUICommand"
                            RoutedEvent="UIElement.MouseLeftButtonDown"
                            Command="{Binding ShowUICommand, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}" />
                        <FZMaterial
                            x:Name="HitTestMaterial"
                            IsHitTestVisible="False"
                            RoutedEventCommand.Action="{Binding ElementName=ShowUICommand}"
                            Opacity="0.0f" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <DataTrigger
                            Binding="{Binding IsUIVisible, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                            Value="False">
                            <Setter
                                Property="IsHitTestVisible"
                                TargetName="HitTestMaterial"
                                Value="True" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="{Type local:FZTextBox}"
        TargetType="{Type local:FZTextBox}">
        <Setter
            Property="Foreground"
            Value="#8C8C8C" />
        <Setter
            Property="FontSize"
            Value="22" />
        <Setter
            Property="FontFamily"
            Value="Horizon_D" />
        <Setter
            Property="MinHeight"
            Value="50" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type TextBoxBase}">
                    <FZMaterial
                        Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                        <ScrollViewer
                            Margin="9"
                            x:Name="PART_ContentHost"
                            VerticalScrollBarVisibility="Hidden"
                            HorizontalScrollBarVisibility="Hidden"
                            HorizontalAlignment="Center"
                            MinWidth="15" />
                    </FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style
        x:Key="A_Style_FZRun_HorizonEdition_BOLD"
        TargetType="local:FZRun">
        <Setter
            Property="FontFamily"
            Value="Horizon_A" />
    </Style>
    <MappingConverter x:Key="A_MappingConverter_HorizonEdition" >
        <MappingConverterEntry Key="{NoCase BOLD}" Value="{StaticResource A_Style_FZRun_HorizonEdition_BOLD}" />
    </MappingConverter>
    <ControlTemplate
        x:Key="A_Control_Template_Event_Timer"
        TargetType="Control">
        <Grid
            ClipToBounds="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition
                    Width="98" />
                <ColumnDefinition
                    Width="280*" />
            </Grid.ColumnDefinitions>
            <FZMaterial
                Grid.Column="0"
                Style="{StaticResource A_Style_FZMaterial_FlatPanel_YellowPillInner}">
                <FZMaterial
                    Stretch="Uniform"
                    Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}"
                    ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Timer_Countdown.png" />
            </FZMaterial>
            <StackPanel
                Grid.Column="1"
                Orientation="Vertical"
                VerticalAlignment="Center"
                Margin="16,6,0,0">
                <FZTextBlock
                    Color="{StaticResource A_Color_White}"
                    CapHeight="30"
                    FontFamily="Horizon_A"
                    VerticalAlignment="Center"
                    Text="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource AncestorType={Type Control}}}" />
                <Decorator
                    Height="10" />
                <FZTextBlock
                    MarkupConverter="{StaticResource A_MappingConverter_HorizonEdition}"
                    Text="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource AncestorType={Type Control}}}"
                    Style="{StaticResource A_Style_FZTextBlock_HorizonB}"
                    Color="{StaticResource A_Color_White}"
                    CapHeight="40" />
            </StackPanel>
        </Grid>
    </ControlTemplate>
    <Style
        x:Key="A_Style_Event_Timer"
        TargetType="Control">
        <Style.Resources>
            <ResourceDictionary>
                <Style
                    x:Key="A_Style_FZRun_NUM"
                    TargetType="local:FZRun">
                    <Setter
                        Property="FontFamily"
                        Value="Horizon_A" />
                    <Setter
                        Property="CapHeight"
                        Value="46" />
                </Style>
            </ResourceDictionary>
        </Style.Resources>
        <Setter
            Property="local:BindingProxy.A"
            Value="0" />
        <Setter
            Property="local:BindingProxy.B"
            Value="0" />
        <Setter
            Property="Template"
            Value="{StaticResource A_Control_Template_Event_Timer}" />
    </Style>
    <Style
        x:Key="A_Style_EventCountdownControl"
        TargetType="{Type local:NetworkCountdownControl}">
        <Setter
            Property="Visibility"
            Value="Visible" />
        <Setter
            Property="Width"
            Value="420" />
        <Setter
            Property="Height"
            Value="98" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="{Type local:NetworkCountdownControl}">
                    <Control
                        Style="{StaticResource A_Style_Event_Timer}"
                        BindingProxy.A="{Binding TimerDisplayName, RelativeSource={RelativeSource AncestorType={Type local:NetworkCountdownControl}}}"
                        BindingProxy.B="{Binding TimeRemaining, RelativeSource={RelativeSource AncestorType={Type local:NetworkCountdownControl}}}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding SecondsRemaining, ConverterParameter=0, RelativeSource={RelativeSource AncestorType={Type local:NetworkCountdownControl}}, Converter={StaticResource A_CompareConverter}}"
                Value="-1">
                <Setter
                    Property="Visibility"
                    Value="Collapsed" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <MappingConverter
        x:Key="A_Converter_ThreadNameToThreadIcon"
        Default="{Null}">
        <MappingConverterEntry
            Key="asphalt_series"
            Value="/ForzaUI;component/Textures/Data_Bound/EventIcons/Asphalt.png" />
        <MappingConverterEntry
            Key="mixed_surface_series"
            Value="/ForzaUI;component/Textures/Data_Bound/EventIcons/Mixed_Surface.png" />
        <MappingConverterEntry
            Key="cross_country_series"
            Value="/ForzaUI;component/Textures/Data_Bound/EventIcons/Cross_Country.png" />
        <MappingConverterEntry
            Key="street_racing_series"
            Value="/ForzaUI;component/Textures/Data_Bound/EventIcons/Street_Race.png" />
        <MappingConverterEntry
            Key="drag_racing"
            Value="/ForzaUI;component/Textures/Data_Bound/EventIcons/Drag.png" />
        <MappingConverterEntry
            Key="online_adventure_mixed"
            Value="/ForzaUI;component/Textures/Data_Bound/InfluenceThreads/MyHorizonLife/online_misc.png" />
        <MappingConverterEntry
            Key="online_adventure_playground_games"
            Value="/ForzaUI;component/Textures/Data_Bound/InfluenceThreads/MyHorizonLife/online_misc.png" />
        <MappingConverterEntry
            Key="online_adventure_racing"
            Value="/ForzaUI;component/Textures/Data_Bound/InfluenceThreads/MyHorizonLife/online_misc.png" />
        <MappingConverterEntry
            Key="online_adventure_drift"
            Value="/ForzaUI;component/Textures/Data_Bound/InfluenceThreads/MyHorizonLife/online_misc.png" />
    </MappingConverter>
    <MappingConverter
        x:Key="A_Converter_ThreadRewardToUnlockText">
        <MappingConverterEntry
            Key="asphalt_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked}" />
        <MappingConverterEntry
            Key="mixed_surface_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked}" />
        <MappingConverterEntry
            Key="cross_country_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked}" />
        <MappingConverterEntry
            Key="street_racing_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked}" />
        <MappingConverterEntry
            Key="drag_racing"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked}" />
    </MappingConverter>
    <MappingConverter
        x:Key="A_Converter_ThreadRewardToUnlockText_Plural">
        <MappingConverterEntry
            Key="asphalt_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked_Plural}" />
        <MappingConverterEntry
            Key="mixed_surface_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked_Plural}" />
        <MappingConverterEntry
            Key="cross_country_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked_Plural}" />
        <MappingConverterEntry
            Key="street_racing_series"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked_Plural}" />
        <MappingConverterEntry
            Key="drag_racing"
            Value="{Loc Rivals.IDS_RewardTitle_RacesUnlocked_Plural}" />
    </MappingConverter>
    <Style
        x:Key="A_Style_FZMaterial_SmallRewardTypeToIcon"
        TargetType="local:FZMaterial">
        <Setter
            Property="ImageSource"
            Value="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeToIcon}}" />
        <Style.Triggers>
	    <DataTrigger
                Binding="{Binding SecondaryRewardTypeId, Converter={StaticResource H_TrueIfNotNull}}"
                Value="True">
                <Setter
                    Property="ImageSource"
                    Value="{Binding SecondaryRewardTypeId, Converter={StaticResource A_Converter_RewardSubTypeToIcon}}" />
            </DataTrigger>
            <DataTrigger
                Binding="{Binding IsEventReward}"
                Value="True">
                <Setter
                    Property="ImageSource"
                    Value="{Binding DataContext.Progress.ThreadName, RelativeSource={RelativeSource FindAncestor, AncestorType=ItemsControl}, Converter={StaticResource A_Converter_ThreadNameToThreadIcon}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style
        x:Key="A_Style_FZTextblock_SmallRewardString"
        BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}"
        TargetType="local:FZTextBlock">
        <Setter Property="Text" Value="{Binding RewardType}" />
        <Setter Property="CapHeight" Value="18" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Grey_80pc}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsEventReward}" Value="True">
                <Setter
                    Property="Text"
                    Value="{Binding DataContext.Progress.ThreadName, RelativeSource={RelativeSource FindAncestor, AncestorType=ItemsControl}, Converter={StaticResource A_Converter_ThreadRewardToUnlockText_Plural}}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding EventsUnlocked}" Value="1">
                <Setter
                    Property="Text"
                    Value="{Binding DataContext.Progress.ThreadName, RelativeSource={RelativeSource FindAncestor, AncestorType=ItemsControl}, Converter={StaticResource A_Converter_ThreadRewardToUnlockText}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <AutoScrollSettings x:Key="A_AutoScrollSettings_SmallReward"
        ScrollOrientation="Horizontal"
        ScrollSeparation="50"
        Speed="20"/>

    <ControlTemplate x:Key="A_ControlTemplate_EliminatorCarLevel_Small" TargetType="Control">
        <FZMaterial
            Height="30"
            Width="120">
            <FZMaterial.Preset>
                <FZMaterialPresetRoundtangle
                    BasedOn="{Binding EliminatorLevel, Converter={StaticResource A_Converter_Grade_To_Preset}, FallbackValue={StaticResource A_Preset_FZMaterial_CarGrade_Gradient_Tier_1}}"
                    CornerRadius="{StaticResource H_CornerRadius_All_2px}" />
            </FZMaterial.Preset>
            <DockPanel>
                <Grid DockPanel.Dock="Right">
                    <FZMaterial
                        ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/Eliminator/HUD/CarGrade_LevelPanel.png"
                        Height="30"
                        Width="72"
                        HorizontalAlignment="Right" />
                    <Decorator
                        Margin="0,-14,6,0"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Center">
                        <FZMaterial
                            Width="50"
                            Height="50"
                            Stretch="Uniform"
                            ImageSourceNoPreload="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HUD_CarGradeLevelTexture}}" />
                    </Decorator>
                </Grid>
                <Decorator
                    DockPanel.Dock="Left">
                    <FZTextBlock
                        Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                        Color="#FFFFFF"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        CapHeight="16"
                        Text="{Loc Lobby.IDS_LVL}" />
                </Decorator>
            </DockPanel>
        </FZMaterial>
    </ControlTemplate>

    <ControlTemplate x:Key="A_ControlTemplate_EliminatorCarLevel_Large" TargetType="Control">
        <FZMaterial
            Height="40"
            Width="120">
            <FZMaterial.Preset>
                <FZMaterialPresetRoundtangle
                    BasedOn="{Binding EliminatorLevel, Converter={StaticResource A_Converter_Grade_To_Preset}, FallbackValue={StaticResource A_Preset_FZMaterial_CarGrade_Gradient_Tier_1}}"
                    CornerRadius="{StaticResource H_CornerRadius_All_3px}" />
            </FZMaterial.Preset>
            <DockPanel>
                <Grid DockPanel.Dock="Right">
                    <FZMaterial
                        ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/Eliminator/HUD/CarGrade_LevelPanel.png"
                        Height="40"
                        Width="72"
                        HorizontalAlignment="Right" />
                    <Decorator
                        Margin="0,-15,-2,0"
                        HorizontalAlignment="Right"
                        VerticalAlignment="Center">
                        <FZMaterial
                            Width="70"
                            Height="70"
                            Stretch="Uniform"
                            ImageSourceNoPreload="{Binding EliminatorLevel, Converter={StaticResource A_Converter_HUD_CarGradeLevelTexture}}" />
                    </Decorator>
                </Grid>
                <Decorator
                    DockPanel.Dock="Left">
                    <FZTextBlock
                        Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                        Color="#FFFFFF"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        CapHeight="16"
                        Text="{Loc Lobby.IDS_LVL}" />
                </Decorator>
            </DockPanel>
        </FZMaterial>
    </ControlTemplate>
    <Style
        TargetType="Control"
        x:Key="A_Style_Control_Checkbox_Radio">
        <Setter
            Property="Tag"
            Value="False" />
        <Setter
            Property="Focusable"
            Value="False" />
        <Setter
            Property="Height"
            Value="48" />
        <Setter
            Property="Width"
            Value="48" />
        <Setter
            Property="Template">
            <Setter.Value>
                <ControlTemplate
                    TargetType="Control">
                    <Grid>
                        <FZMaterial
                            x:Name="Off"
                            GreedyMeasure="True"
                            Color="{StaticResource A_Color_OptionsItem_EnabledNotFocused}"
                            ImageSource="\Textures\Data_Bound\Checkbox\Radio_Off.png" />
                        <FZMaterial
                            x:Name="On"
                            GreedyMeasure="True"
                            Visibility="Hidden"
                            Color="{StaticResource A_Color_OptionsItem_EnabledNotFocused}"
                            ImageSource="\Textures\Data_Bound\Checkbox\Radio_On.png" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger
                            Property="Tag">
                            <Trigger.Value>
                                <Boolean>True</Boolean>
                            </Trigger.Value>
                            <Setter
                                TargetName="On"
                                Property="Visibility"
                                Value="Visible" />
                            <Setter
                                TargetName="Off"
                                Property="Visibility"
                                Value="Hidden" />
                        </Trigger>
                        <DataTrigger
                            Binding="{Binding IsKeyboardFocusWithin, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}"
                            Value="True">
                            <Setter
                                TargetName="Off"
                                Property="Color"
                                Value="{StaticResource A_Color_TextMenu_Text_Highlighted}" />
                            <Setter
                                TargetName="On"
                                Property="Color"
                                Value="{StaticResource A_Color_TextMenu_Text_Highlighted}" />
                        </DataTrigger>
                        <DataTrigger
                            Binding="{Binding IsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}"
                            Value="False">
                            <Setter
                                TargetName="Off"
                                Property="Color"
                                Value="{StaticResource A_Color_OptionsItem_Disabled}"/>
                            <Setter
                                TargetName="Off"
                                Property="Opacity"
                                Value="{StaticResource A_Double_OptionsItemOpacity_Disabled}"/>
                            <Setter
                                TargetName="On"
                                Property="Color"
                                Value="{StaticResource A_Color_OptionsItem_Disabled}"/>
                            <Setter
                                TargetName="On"
                                Property="Opacity"
                                Value="{StaticResource A_Double_OptionsItemOpacity_Disabled}"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="H_Template_CurrencyIcon"
        TargetType="Control">
        <FZMaterial ImageSource="{Binding (BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}" Preset="{Binding (BindingProxy.B), RelativeSource={RelativeSource TemplatedParent}}"/>
    </ControlTemplate>

    <Style x:Key="H_Style_Control_CurrencyIcon"
        TargetType="Control">
        <Setter Property="Width" Value="{Binding ActualHeight, RelativeSource={RelativeSource Self}}" />
        <Setter Property="Template" Value="{StaticResource H_Template_CurrencyIcon}"/>
        <!--Can allow you to set the Preset to a Desaturated preset, for example-->
        <Setter Property="BindingProxy.B" Value="{Roundtangle CornerRadius=0}"/>
    </Style>

    <BitmapImage x:Key="H_BitmapImage_Credits_Extra_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Credits_Extra_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_Credits_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Credits_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_Credits_Medium"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Credits_Medium.png"/>
    <BitmapImage x:Key="H_BitmapImage_Credits_Small"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Credits_Small.png"/>

    <Style x:Key="H_Style_Control_CreditsIcon"
        BasedOn="{StaticResource H_Style_Control_CurrencyIcon}"
        TargetType="Control">
        <Style.Triggers>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=80}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Credits_Extra_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=81}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Credits_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=41}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Credits_Medium}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=21}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Credits_Small}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <BitmapImage x:Key="H_BitmapImage_FP_Extra_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\FP_Extra_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_FP_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\FP_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_FP_Medium"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\FP_Medium.png"/>
    <BitmapImage x:Key="H_BitmapImage_FP_Small"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\FP_Small.png"/>

    <Style x:Key="H_Style_Control_FPIcon"
        BasedOn="{StaticResource H_Style_Control_CurrencyIcon}"
        TargetType="Control">
        <Style.Triggers>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=80}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_FP_Extra_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=81}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_FP_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=41}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_FP_Medium}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=21}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_FP_Small}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <BitmapImage x:Key="H_BitmapImage_DJ_Extra_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\DJ_Extra_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_DJ_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\DJ_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_DJ_Medium"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\DJ_Medium.png"/>
    <BitmapImage x:Key="H_BitmapImage_DJ_Small"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\DJ_Small.png"/>

    <Style x:Key="H_Style_Control_DJIcon"
        BasedOn="{StaticResource H_Style_Control_CurrencyIcon}"
        TargetType="Control">
        <Style.Triggers>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=80}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_DJ_Extra_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=81}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_DJ_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=41}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_DJ_Medium}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=21}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_DJ_Small}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <BitmapImage x:Key="H_BitmapImage_Playlist_Extra_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Playlist_Extra_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_Playlist_Large"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Playlist_Large.png"/>
    <BitmapImage x:Key="H_BitmapImage_Playlist_Medium"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Playlist_Medium.png"/>
    <BitmapImage x:Key="H_BitmapImage_Playlist_Small"
        UriSource="game:\Media\UI\Textures\Data_Bound\Currency\Playlist_Small.png"/>

    <Style x:Key="H_Style_Control_PlaylistIcon"
        BasedOn="{StaticResource H_Style_Control_CurrencyIcon}"
        TargetType="Control">
        <Style.Triggers>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=80}}" Value="{x:Static CompareResult.GreaterThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Playlist_Extra_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=81}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Playlist_Large}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=41}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Playlist_Medium}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ActualHeight, RelativeSource={RelativeSource Self}, Converter={CompareConverter Value=21}}" Value="{x:Static CompareResult.LessThan}">
                <Setter Property="BindingProxy.A" Value="{StaticResource H_BitmapImage_Playlist_Small}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!--copied this because the dynamic corner radius does not work-->
    <Style
        x:Key="A_Style_FZMaterial_RewardBacking_Banner"
        TargetType="local:FZMaterial">
        <Style.Resources>
            <ResourceDictionary>
                <FZMaterialPresetRoundtangle
                    x:Key="A_Preset_Reward_Gradient"
                    CornerRadius="0,45,45,0"
                    GradientAngle="90"/>
                <FZMaterialPresetRoundtangle
                    x:Key="A_Preset_HorizonEdition_Gradient"
                    BasedOn="{StaticResource A_Preset_Reward_Gradient}"
                    GradientColorA="{StaticResource A_Color_HorizonEditionGradientA}"
                    GradientColorB="{StaticResource A_Color_HorizonEditionGradientB}" />

                <MappingConverter x:Key="A_Converter_RarityToPreset" Default="{StaticResource A_Preset_Reward_Gradient}">
                    <MappingConverterEntry Key="{x:Static XAMLRarity.HorizonEdition}" Value="{StaticResource A_Preset_HorizonEdition_Gradient}" />
                </MappingConverter>
            </ResourceDictionary>
        </Style.Resources>
        <Setter 
            Property="Preset"
            Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToPreset}}" />
        <Setter
            Property="Color"
            Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
        <Style.Triggers>
            <DataTrigger
                Binding="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeShouldUseNoRarityColor}}"
                Value="{StaticResource A_Boolean_True}">
                <Setter
                    Property="Color"
                    Value="{StaticResource A_Color_NonRarity_Reward}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
   

    <MappingConverter x:Key="H_Converter_RewardTypeToString"
                      CheckEnumKey="UIRewardType">
        <MappingConverterEntry Key="{x:Static UIRewardType.Credits}"
                               Value="{Convert {Loc Campaign.IDS_CreditsReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Currency}"
                               Value="{Convert {Loc Campaign.IDS_CurrencyReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Car}"
                               Value="{Convert {Loc Campaign.IDS_CarReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Clothing}"
                               Value="{Convert {Loc Campaign.IDS_ClothingReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Horn}"
                               Value="{Convert {Loc Campaign.IDS_HornReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.QuickChatPhrase}"
                               Value="{Convert {Loc Campaign.IDS_QuickChatReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Emote}"
                               Value="{Convert {Loc Campaign.IDS_EmoteReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Wheelspin}"
                               Value="{Convert {Loc Campaign.IDS_WheelspinReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SuperWheelspin}"
                               Value="{Convert {Loc Campaign.IDS_SuperWheelspinReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.BarnFindRumour}"
                               Value="{Convert {Loc Campaign.IDS_BarnFindRumourReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SkillPoints}"
                               Value="{Convert {Loc Campaign.IDS_SkillPointsReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SkillTokens}"
                               Value="{Convert {Loc Campaign.IDS_SkillTokensReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Perk}"
                               Value="{Convert {Loc Campaign.IDS_PerkReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.DynamicLevelXP}"
                               Value="{Convert {Loc Campaign.IDS_DynamicLevelXPReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Badge}"
                               Value="{Convert {Loc Campaign.IDS_BadgeReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Music}"
                               Value="{Convert {Loc Campaign.IDS_MusicReward}, Converter={StringToUpper}}" />
        <MappingConverterEntry Key="{x:Static UIRewardType.LiveryDecals}"
                               Value="{Convert {Loc Campaign.IDS_LiveryDecalsReward}, Converter={StringToUpper}}" />
    </MappingConverter>
  
    <MappingConverter x:Key="H_Converter_RewardTypeToIcon"
                      CheckEnumKey="UIRewardType">
        <MappingConverterEntry Key="{x:Static UIRewardType.Credits}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Credits_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Currency}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Car}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Clothing}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Clothing_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Horn}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Horn_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.QuickChatPhrase}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Chat_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Emote}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Emote_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Wheelspin}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Wheelspin_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SuperWheelspin}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Super_Wheelspin_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.BarnFindRumour}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SkillPoints}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.SkillTokens}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Perk}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.DynamicLevelXP}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Badge}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Generic_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.Music}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Song_Reward_Icon.png" />
        <MappingConverterEntry Key="{x:Static UIRewardType.LiveryDecals}"
                               Value="game:\Media\UI\Textures\Data_Bound\CollectionCampaign\RewardIcons\Livery_Reward_Icon.png" />
    </MappingConverter>
  
    <Style x:Key="H_Style_RewardImage" TargetType="FZMaterial">
        <Setter Property="Visibility" Value="Hidden"/>
        <Setter Property="ImageSource" Value="{Binding RewardType, Converter={StaticResource H_Converter_RewardTypeToIcon}}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RewardType}" Value="{x:Static UIRewardType.Car}">
                <Setter Property="ImageSource" Value="{Binding Thumbnail}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Downloaded, RelativeSource={RelativeSource Self}}" Value="True">
                <Setter Property="Visibility" Value="Visible"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="A_DataTemplate_SmallReward">
        <Grid x:Name="root">
            <Grid>
                <DockPanel>
                    <FZMaterial DockPanel.Dock="Right"
                                Width="98"
                                Style="{StaticResource A_Style_FZMaterial_RewardBacking_Banner}" />
                    <FZMaterial Color="{StaticResource H_Color_Primary_White}"
                                Preset="{Roundtangle CornerRadius={CornerRadius TopLeft=45, BottomLeft=45}}" />
                </DockPanel>
                <DockPanel>
                    <DockPanel>
                        <Grid DockPanel.Dock="Right">
                            <FZMaterial Style="{StaticResource H_Style_RewardImage}"
                                        HorizontalAlignment="Right"
                                        Height="90"
                                        Width="200"
                                        Stretch="Uniform" />
                        </Grid>
                        <Grid>
                            <StackPanel VerticalAlignment="Center"
                                        Margin="45,0,0,0">
                                <StackPanel Orientation="Horizontal">
                                    <FZMaterial Preset="{Roundtangle CornerRadius=3}"
                                                Color="{StaticResource H_Color_Primary_Yellow}"
                                                x:Name="reward_type_back"
                                                MinWidth="56"
                                                Height="26">
                                        <FZTextBlock Text="{Binding RewardType, Converter={StaticResource H_Converter_RewardTypeToString}}"
                                                     x:Name="reward_type"
                                                     Color="{StaticResource H_Color_Primary_Black}"
                                                     Style="{StaticResource A_Style_FZMaterial_RarityTagText}"
                                                     CapHeight="14" />
                                    </FZMaterial>
                                    <Decorator Width="3" />
                                    <Control Style="{StaticResource A_Style_RarityFloatingPin_Mini}" />
                                </StackPanel>
                                <Decorator Height="10" />
                                <Grid>
                                    <FZTextBlock Visibility="{Binding RewardType, Converter={CompareConverter Value={x:Static UIRewardType.Credits}, Equal=Collapsed, NotEqual=Visible}, FallbackValue=Collapsed}"
                                                 Text="{Binding Description}"
                                                 Color="{StaticResource H_Color_Primary_Black}"
                                                 CapHeight="21"
                                                 FontFamily="Horizon_A" />
                                    <FZTextBlock Visibility="{Binding RewardType, Converter={CompareConverter Value={x:Static UIRewardType.Credits}, NotEqual=Collapsed, Equal=Visible}, FallbackValue=Collapsed}"
                                                 Color="{StaticResource H_Color_Primary_Black}"
                                                 CapHeight="21"
                                                 FontFamily="Horizon_A">
                                        <FZRun Text="{Binding Amount, Converter={NumUnitConverter FractionDigits=0}}" />
                                        <InlineUIContainer>
                                            <Control Margin="4,-4,0,-4"
                                                     Style="{StaticResource H_Style_Control_CreditsIcon}" />
                                        </InlineUIContainer>
                                    </FZTextBlock>
                                </Grid>
                            </StackPanel>
                        </Grid>
                    </DockPanel>
                </DockPanel>
            </Grid>
        </Grid>
    </DataTemplate>
    <Style x:Key="A_Style_ListBox_AutoScrollPanel" TargetType="{Type CommonListBox}">
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type ListBox}">
                    <ItemsPresenter />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{Type ListBoxItem}">
                    <Setter Property="HorizontalContentAlignment"
                            Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType=local:AutoScrollPanel}}" />
                    <Setter Property="VerticalContentAlignment"
                            Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType=local:AutoScrollPanel}}" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBoxItem">
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="A_Style_AutoScrollPanel_Masked" TargetType="AutoScrollPanel">
        <Setter Property="ScrollType" Value="Speed" />
        <Setter Property="ScrollSeparation" Value="50" />
        <Setter Property="Speed" Value="20.0" />
        <Setter Property="Margin" Value="0,-5" />
        <Setter Property="ClipToBounds" Value="True" />
        <Setter Property="Orientation" Value="Vertical" />
        <Setter Property="AllowScrolling" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="AutoScrollPanel">
                    <CommonListBox Style="{StaticResource A_Style_ListBox_AutoScrollPanel}">
                            <CommonListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel
                                            Orientation="{Binding Orientation, RelativeSource={RelativeSource FindAncestor, AncestorType=AutoScrollPanel}}"
                                            IsItemsHost="True"
                                            Focusable="False" />
                                </ItemsPanelTemplate>
                            </CommonListBox.ItemsPanel>
                            <Control Template="{DynamicResource A_ControlTemplate_AutoscrollTemplate_Dynamic}" />
                            <Decorator Height="{Binding ScrollSeparation, RelativeSource={RelativeSource TemplatedParent}}"
                                       Width="{Binding ScrollSeparation, RelativeSource={RelativeSource TemplatedParent}}"
                                       Visibility="{Binding RequiresScrolling, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                            <Control Template="{DynamicResource A_ControlTemplate_AutoscrollTemplate_Dynamic}"
                                     Visibility="{Binding RequiresScrolling, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                            <Decorator Height="{Binding ScrollSeparation, RelativeSource={RelativeSource TemplatedParent}}"
                                       Width="{Binding ScrollSeparation, RelativeSource={RelativeSource TemplatedParent}}"
                                       Visibility="{Binding RequiresScrolling, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" />
                    </CommonListBox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>