<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ForzaUI;assembly="
                    xmlns:System="clr-namespace:System;assembly=mscorlib">

    <KeySpline x:Key="A_Spline_PostRace_AnimateIn_ControlPointA"
               ControlPoint1="0.61,0.22"
               ControlPoint2="0.72,1" />

    <KeySpline x:Key="A_Spline_PostRace_AnimateIn_ControlPointB"
               ControlPoint1="0.23,0"
               ControlPoint2="0.34,0.98" />
    
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_PostRace_RewardBoxPanel"
                                        EdgeColor="#FF000000"
                                        Reflectivity="0.05"
                                        NormalDepth="0"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_TitleBlock}"
                                        Depth="{StaticResource A_Double_Depth_Acrylic}" />
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_RewardBoxPanel" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_PostRace_RewardBoxPanel}" />
        <Setter Property="Color" Value="{StaticResource A_Color_Acrylic_TitlePanel}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_PostRace_BonusItem"
                                        Reflectivity="0.2"
                                        NormalDepth="0"
                                        GlassEmission="0.7" 
                                        EdgeEmission="1" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Low"
                                        ReflectionTextureType="Sharp" 
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="0.5"
                                        SubsurfaceSize="4"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Highlight}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_BonusItem" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_PostRace_BonusItem}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>    
    
    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_PostRace_Fans"
                                        NormalDepth="0"
                                        GlassEmission="0.7" 
                                        EdgeEmission="1" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Low"
                                        Reflectivity="0.1"
                                        ReflectionTextureType="Sharp" 
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="0.5"
                                        SubsurfaceSize="4"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Fans}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_Fans" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_PostRace_Fans}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_PostRace_NewUnlock"
                                        GlassColor="{StaticResource A_Color_Acrylic_PostRace}"
                                        EdgeColor="{StaticResource A_Color_Acrylic_PostRaceEdge}"
                                        Reflectivity="0.2"
                                        NormalDepth="0"
                                        GlassEmission="0.7" 
                                        EdgeEmission="1" 
                                        FrontEdgeTransparency="0.5" 
                                        RearTransparency="0.05" 
                                        BlurAmount="Low"
                                        ReflectionTextureType="Sharp" 
                                        SideReflectionIntensity="1"
                                        SubsurfaceIntensity="0.5"
                                        SubsurfaceSize="4"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_Highlight}"/>
    <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_NewUnlock" TargetType="local:FZMaterial" >
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_PostRace_NewUnlock}" />
        <Setter Property="Color" Value="Transparent" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base"
                                    GlassColor="#FFFF5300"
                                    EdgeColor="#FFFF5300"
                                    GlassEmission="0.7" 
                                    EdgeEmission="1.0" 
                                    FrontEdgeTransparency="0.5" 
                                    RearTransparency="0.05" 
                                    BlurAmount="Low"
                                    ReflectionTextureType="Sharp" 
                                    Reflectivity="0.05"
                                    NormalDepth="0"
                                    SideReflectionIntensity="0.6"
                                    SubsurfaceIntensity="0.0"
                                    SubsurfaceSize="0"
                                    Depth="{StaticResource A_Double_Depth_Acrylic}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Base" 
               TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{Binding LevelBarMinimum, Converter={StaticResource A_XPConverter_Border}, ConverterParameter={RelativeSource Self}}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier1"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier1"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier1}" />
        <Setter Property="Color" Value="{Binding LevelBarMinimum, Converter={StaticResource A_XPConverter}, ConverterParameter={RelativeSource Self}}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier2"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier2"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier2}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier3"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier3"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier3}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier4"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier4"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier4}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier5"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier5"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier5}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier6"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier6"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier6}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier7"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier7"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier7}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier8"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier8"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier8}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier9"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"/>
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier9"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier9}" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier10"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"
                                    ReflectionTextureType="Soft" 
                                    Reflectivity="1.2" />
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier10"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier10}" />
        <Setter Property="Color" Value="#FFD6582A" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier11"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"
                                    ReflectionTextureType="Soft" 
                                    Reflectivity="1.2" />
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier11"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier11}" />
        <Setter Property="Color" Value="#FFB0B7BF" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier12"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"
                                    ReflectionTextureType="Soft" 
                                    Reflectivity="1.2" />
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier12"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier12}" />
        <Setter Property="Color" Value="#FFD4A033" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier13"
                                    BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Base}"
                                    ReflectionTextureType="Soft" 
                                    Reflectivity="1.2" />
    <Style x:Key="A_Style_FZMaterial_XPLevelBar_Tier13"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_XPLevelBar_Base}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_XPLevelBar_Tier13}" />
        <Setter Property="Color" Value="#FFA2C9DB" />
    </Style>

    <local:XPConverter x:Key="A_XPConverter_LevelBar"
                           ResourcePrefix="A_Style_FZMaterial_XPLevelBar_" />

    <Style x:Key="A_Style_Control_XPLevelBox_Base" TargetType="Control">
        <Setter Property="Width" Value="88" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <local:FZMaterial Color="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter_Border}}"
                                          Preset="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}">
                        <local:FZMaterial Color="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter}}"
                                              Margin="7">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}" FontSize="60" Margin="6,0,6,0"
                                               Text="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter}}"
                                               Color="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter_Text}}"
                                               Preset="{StaticResource A_FZMaterialPreset_Matte}"
                                               VerticalAlignment="Center" HorizontalAlignment="Center" />
                        </local:FZMaterial>
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_XPLevelBox_ImageAndTextBase" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <local:FZMaterial ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                      Preset="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}">
                        <Decorator Margin="7">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}" FontSize="60" Margin="6,0,6,0"
                                               Text="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter}}"
                                               Color="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_XPConverter_Text}}"
                                               Preset="{StaticResource A_FZMaterialPreset_Matte}"
                                               VerticalAlignment="Center" HorizontalAlignment="Center" />
                        </Decorator>
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style x:Key="A_Style_Control_XPLevelBox_ImageBase" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <local:FZMaterial ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                      Preset="{StaticResource A_FZMaterialPresetAcrylicPanel_Opaque}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_XPLevelBox_Tier1" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier2" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier3" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier4" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier5" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier6" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier7" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier8" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />
    
    <Style x:Key="A_Style_Control_XPLevelBox_Tier9" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_Base}" />

    <Style x:Key="A_Style_Control_XPLevelBox_Tier10" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_ImageAndTextBase}">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Anthem/XPBar/bronze.png" />
    </Style>

    <Style x:Key="A_Style_Control_XPLevelBox_Tier11" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_ImageAndTextBase}">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Anthem/XPBar/silver.png" />
    </Style>

    <Style x:Key="A_Style_Control_XPLevelBox_Tier12" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_ImageAndTextBase}">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Anthem/XPBar/gold.png" />
    </Style>

    <Style x:Key="A_Style_Control_XPLevelBox_Tier13" TargetType="Control" BasedOn="{StaticResource A_Style_Control_XPLevelBox_ImageBase}">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Anthem/XPBar/platinum.png" />
    </Style>

    <local:XPConverter x:Key="A_XPConverter_LevelBox"
                       ResourcePrefix="A_Style_Control_XPLevelBox_" />
    
    <Style x:Key="A_Style_FZTextBlock_PostRace_BonusText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
        <Setter Property="Color"
                Value="#FFFFFF" />
        <Setter Property="CapHeight"
                Value="31" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_PostRace_BonusValue" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="Color"
                Value="#FFFFFF" />
        <Setter Property="CapHeight"
                Value="31" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_PostRace_NextRewardText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}">
    </Style>

    <System:Double x:Key="A_Double_PostRace_HalfSmallBlockHeight">29</System:Double>
    <System:Double x:Key="A_Double_PostRace_HalfLargeBlockHeight">82</System:Double>

    <local:LinearTransformConverter x:Key="A_Converter_MotionBlurMultiplier"
                                    Scale="5" />

    <Style x:Key="A_Style_FrameworkElement_PostRace_SmallAnimatedBlock" TargetType="FrameworkElement">
        <Setter Property="local:ZPanel.Transform">
            <Setter.Value>
                <Transform3DGroup>
                    <RotateTransform3D>
                        <RotateTransform3D.Rotation>
                            <AxisAngleRotation3D Axis="-1,0,0" Angle="0" />
                        </RotateTransform3D.Rotation>
                    </RotateTransform3D>
                    <TranslateTransform3D OffsetZ="0" />
                </Transform3DGroup>
            </Setter.Value>
        </Setter>
        <Setter Property="local:ZPanel.TransformOrigin"
                Value="0.5,0.5" />
        <Setter Property="Opacity"
                Value="0" />
        <Setter Property="Effect"
                Value="{StaticResource A_MotionBlurEffect}" />
        <Setter Property="local:MotionBlurEffect.MotionBlurPositionXControl"
                Value="{Binding (local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_MotionBlurMultiplier}}" />
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BonusLabelBlock" TargetType="Control" BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}">
        <Setter Property="Tag"
                Value="{Binding Name}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}"
                                       RenderTransform="{StaticResource A_Transform_Italic}"
                                       Text="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type Control}}}"
                                       VerticalAlignment="Center"
                                       StretchDirection="DownOnly"
                                       MaxWidth="320"
                                       Stretch="Uniform"
                                       HorizontalAlignment="Left" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Visibility"
                Value="{Binding Name, Converter={StaticResource A_StringVisConverter_UseHidden}}" />
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BonusValueBlock" TargetType="Control" BasedOn="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}">
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel x:Name="FrontFace"
                               RenderTransform="{StaticResource A_Transform_Italic}">
                        <local:FZMaterial ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                          Stretch="Uniform"
                                          GreedyMeasure="True"
                                          Height="37"
                                          Margin="0,-4"
                                          DockPanel.Dock="Left" />
                        <Decorator Width="6"
                                   DockPanel.Dock="Left" />
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusValue}"
                                           Text="{Binding Value}"
                                           VerticalAlignment="Center" />

                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_BonusValue}">
        <Setter Property="CapHeight"
                Value="57" />
        <Setter Property="Effect"
                Value="{StaticResource A_Effect_HighContrastModeDropShadow_Large}" />
    </Style>


    <Style x:Key="A_Style_FrameworkElement_PostRace_TotalLabelBlock" TargetType="FrameworkElement">
        <Setter Property="Effect" Value="{StaticResource A_MotionBlurEffect}" />
        <Setter Property="local:MotionBlurEffect.MotionBlurPositionXControl" 
                    Value="{Binding (local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX), RelativeSource={RelativeSource Self}}" />
        <Setter Property="Opacity" Value="0" />
            <Setter Property="local:ZPanel.Transform">
                <Setter.Value>
                    <Transform3DGroup>
                        <RotateTransform3D />
                        <TranslateTransform3D OffsetZ="0" />
                    </Transform3DGroup>
                </Setter.Value>
            </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_TotalLabelBlock" TargetType="Control" 
           BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_TotalLabelBlock}">
        <Style.Resources>
            <System:Double x:Key="A_Double_TotalLabelTextSize">43</System:Double>
        </Style.Resources>
        <Setter Property="Tag" Value="{local:Loc InGame.IDS_Total_SubHeading}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZTextBlock Style="{DynamicResource A_Style_FZTextBlock_PostRace_TotalText}"
                                       Text="{TemplateBinding Tag}"
                                       CapHeight="{DynamicResource A_Double_TotalLabelTextSize}"
                                       VerticalAlignment="Center"
                                       HorizontalAlignment="Left" />

                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="local:ZPanel.Transform">
            <Setter.Value>
                <Transform3DGroup>
                    <RotateTransform3D CenterY="76">
                        <RotateTransform3D.Rotation>
                            <AxisAngleRotation3D Axis="-1,0,0" Angle="0" />
                        </RotateTransform3D.Rotation>
                    </RotateTransform3D>
                    <TranslateTransform3D OffsetZ="0" />
                </Transform3DGroup>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_TotalLabelBlock_Large" TargetType="Control" 
           BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}">
        <Style.Resources>
            <System:Double x:Key="A_Double_TotalLabelTextSize">46</System:Double>
        </Style.Resources>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_TotalValueBlock" TargetType="Control" BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}">
        <Setter Property="local:BindingProxy.A" Value="{Binding TotalReward.TargetTickerValue}" />
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Viewbox Stretch="Uniform"
                             HorizontalAlignment="Left"
                             StretchDirection="DownOnly">
                        <Grid>
                            <StackPanel Orientation="Horizontal">
                                <!--The additive presets in here only work when you null the motionblur effect on the control root.  This is used by impact bloom on the total values-->
                                <local:FZMaterial ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                                  Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                  Height="154"
                                                  VerticalAlignment="Center"
                                                  Margin="0,-5"
                                                  Width="154" />
                                <Decorator Width="8" />
                                <!--The additive presets in here only work when you null the motionblur effect on the control root.  This is used by impact bloom on the total values-->
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                   Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                   CapHeight="124"
                                                   x:Name="TickerValue"
                                                   Text="{TemplateBinding local:BindingProxy.A}"
                                                   VerticalAlignment="Center" />

                            </StackPanel>
                        </Grid>
                    </Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_TotalValueBlock_Additive_NoMotionBlur"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_PostRace_TotalValueBlock}">
        <Setter Property="Effect"
                Value="{x:Null}" />
    </Style>
    
        <Style x:Key="A_Style_FZTextBlock_PostRace_BalanceValueText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}">
    </Style>

    <Style x:Key="A_Style_FZTextBlock_PostRace_BalanceLabelText" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_BalanceValueText}">
        <Setter Property="Color" Value="#000000" />
    </Style>

    <local:FZMaterialPresetAcrylicPanel x:Key="A_FZMaterialPresetAcrylicPanel_PostRace_BalanceBlock"
                                        BasedOn="{StaticResource A_FZMaterialPresetAcrylicPanel_HeaderPanel}"
                                        EdgeEmission="0.8" 
                                        BlurAmount="Low"
                                        Reflectivity="0"
                                        SubsurfaceIntensity="0"
                                        SubsurfaceSize="2"/>
    <Style x:Key="A_Style_FZMaterial_PostRace_BalanceBlock"
               TargetType="local:FZMaterial"
               BasedOn="{StaticResource A_Style_FZMaterial_AcrylicPanel_HeaderPanel}">
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetAcrylicPanel_PostRace_BalanceBlock}" />
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BalanceLabelBlock" TargetType="Control" BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_PostRace_BalanceBlock}" MinHeight="0">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BalanceLabelText}"
                                Text="{local:Loc InGame.IDS_PostRace_BalanceTitle}" VerticalAlignment="Center" HorizontalAlignment="Right" />
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="0,0,9,0" />
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BalanceValueBlock" TargetType="Control" BasedOn="{StaticResource A_Style_Control_PostRace_BalanceLabelBlock}">
        <Setter Property="HorizontalAlignment"
                Value="Right" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZMaterial CaptureSubgraph="True">
                        <StackPanel Orientation="Horizontal">
                            <local:FZMaterial CaptureSubgraph="True"
                                              HorizontalAlignment="Center"
                                              VerticalAlignment="Center">
                                <Grid>
                                    <local:FZMaterial Color="#fff"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}" />
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                       CapHeight="34"
                                                       Color="#fff"
                                                       Text="{local:Loc InGame.IDS_PostRace_BalanceTitle}"
                                                       Margin="12,16"
                                                       Stretch="None"
                                                       Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                       VerticalAlignment="Center"
                                                       HorizontalAlignment="Center" />
                                </Grid>
                            </local:FZMaterial>

                            <Decorator Width="13" />

                            <local:FZMaterial CaptureSubgraph="True"
                                              HorizontalAlignment="Center"
                                              VerticalAlignment="Center">
                                <Grid>
                                    <local:FZMaterial Color="#fff"
                                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}" />
                                    <StackPanel Orientation="Horizontal"
                                                Margin="18,16,24,16">
                                        <local:FZMaterial Color="#FFFFFF"
                                                          ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                                          Stretch="Uniform"
                                                          Height="41"
                                                          Width="41"
                                                          Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                          Margin="-2,-4,6,-4" />
                                        <Decorator Width="6" />
                                        <Grid>
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                               CapHeight="34"
                                                               Text="{Binding FinalBalanceText}"
                                                               Visibility="Hidden"
                                                               VerticalAlignment="Center"
                                                               HorizontalAlignment="Right" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HorizonA}"
                                                               CapHeight="34"
                                                               Text="{Binding CurrentBalanceText}"
                                                               Color="#fff"
                                                               Preset="{StaticResource A_FZMaterialPreset_Cutout}"
                                                               VerticalAlignment="Center"
                                                               HorizontalAlignment="Right" />
                                        </Grid>
                                    </StackPanel>
                                </Grid>
                            </local:FZMaterial>

                        </StackPanel>
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BonusLabelBlock_Fans" 
           BasedOn="{StaticResource A_Style_Control_PostRace_BonusLabelBlock}"
           TargetType="Control">
        <Style.Resources>
            <!-- Local Style override -->
            <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_BonusItem" TargetType="local:FZMaterial" 
                   BasedOn="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_Fans}" />
        </Style.Resources>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_BonusValueBlock_Fans" 
           BasedOn="{StaticResource A_Style_Control_PostRace_BonusValueBlock}"
           TargetType="Control">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Anthem/Icons/FansIcon/Fans_64.png" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText_Fans" TargetType="local:FZTextBlock" 
           BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}">
        <Setter Property="FontSize" Value="146" />
        <Setter Property="Margin" Value="42,30" />
    </Style>
    
    <Style x:Key="A_Style_Control_PostRace_TotalLabelBlock_Fans"
           BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}"
           TargetType="Control">
        <Setter Property="Tag" Value="{local:Loc InGame.IDS_PostRace_FansTotal}" />
        <Style.Resources>
            <!-- Local Style overrides -->
            <Style x:Key="A_Style_FZMaterial_AcrylicPanel_PostRace_BonusItem" TargetType="local:FZMaterial"
                   BasedOn="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_Fans}" />
            <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText" TargetType="local:FZTextBlock" 
                   BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_TotalText_Fans}" />
        </Style.Resources>
    </Style>

    <Style x:Key="A_Style_ProgressBar_FansLevelBar" TargetType="{x:Type ProgressBar}">
        <Setter Property="Focusable"
                Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ProgressBar}">
                    <DockPanel x:Name="PART_Track" local:ZPanel.SortByDepth="True">
                        <local:FZMaterial x:Name="PART_Indicator"
                            Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_Fans}"
                            DockPanel.Dock="Left" />
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_RewardBoxPanel}" RenderTransformOrigin="0.5,0.5">
                            <local:FZMaterial.RenderTransform>
                                <RotateTransform Angle="180" />
                            </local:FZMaterial.RenderTransform>
                        </local:FZMaterial>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_PostRace_TotalLabelBlock_Fans" TargetType="FrameworkElement"
           BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_TotalLabelBlock}">
        <Setter Property="local:ZPanel.Transform">
            <Setter.Value>
                <Transform3DGroup>
                    <RotateTransform3D CenterY="{StaticResource A_Double_PostRace_HalfLargeBlockHeight}">
                        <RotateTransform3D.Rotation>
                            <AxisAngleRotation3D Axis="-1,0,0" Angle="0" />
                        </RotateTransform3D.Rotation>
                    </RotateTransform3D>
                    <TranslateTransform3D OffsetZ="0" />
                </Transform3DGroup>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_ProgressLabelBlock" TargetType="Control" BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}">
        <Setter Property="Margin" Value="0,0,9,0" />
        <Setter Property="Tag" Value="{Binding ProgressTargetLabel}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid>
                        <local:FZMaterial x:Name="FrontFace" Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_Tile_Background}">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}" Color="{StaticResource A_Color_GlossyBlack}"
                                    Text="{Binding Tag, RelativeSource={RelativeSource AncestorType={x:Type Control}}}" VerticalAlignment="Center" HorizontalAlignment="Left" />
                        </local:FZMaterial>
                        <local:FZMaterial x:Name="BackFace" Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_BonusItem}">
                            <local:ZPanel.Transform>
                                <Transform3DGroup>
                                    <RotateTransform3D CenterY="{StaticResource A_Double_PostRace_HalfSmallBlockHeight}">
                                        <RotateTransform3D.Rotation>
                                            <AxisAngleRotation3D Axis="-1,0,0" Angle="180" />
                                        </RotateTransform3D.Rotation>
                                    </RotateTransform3D>
                                    <TranslateTransform3D OffsetZ="{StaticResource A_Double_Depth_Acrylic}" />
                                </Transform3DGroup>
                            </local:ZPanel.Transform>
                        </local:FZMaterial>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_ContentControl_PostRace_ProgressValueBlock" TargetType="ContentControl" BasedOn="{StaticResource A_Style_Control_PostRace_ProgressLabelBlock}">
        <Setter Property="Tag" Value="/ForzaUI;component/Textures/Data_Bound/Mountain/Stars/Star_64.png" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <StackPanel Orientation="Horizontal">
                        <Grid>
                            <StackPanel x:Name="FrontFace" Orientation="Horizontal">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_Tile_Background}"
                                                ImageSource="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                                Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}" />
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_RewardBoxPanel}">
                                    <ContentPresenter />
                                </local:FZMaterial>
                            </StackPanel>
                            <local:FZMaterial x:Name="BackFace" Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_RewardBoxPanel}">
                                <local:ZPanel.Transform>
                                    <Transform3DGroup>
                                        <RotateTransform3D CenterY="{StaticResource A_Double_PostRace_HalfSmallBlockHeight}">
                                            <RotateTransform3D.Rotation>
                                                <AxisAngleRotation3D Axis="-1,0,0" Angle="180" />
                                            </RotateTransform3D.Rotation>
                                        </RotateTransform3D>
                                        <TranslateTransform3D OffsetZ="{StaticResource A_Double_Depth_Acrylic}" />
                                    </Transform3DGroup>
                                </local:ZPanel.Transform>
                            </local:FZMaterial>
                        </Grid>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_NewUnlockBlock" TargetType="Control" BasedOn="{StaticResource A_Style_Control_PostRace_ProgressLabelBlock}">
        <Setter Property="Margin" Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <local:FZMaterial x:Name="FrontFace" Style="{StaticResource A_Style_FZMaterial_AcrylicPanel_PostRace_NewUnlock}">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_BonusText}" Color="{StaticResource A_Color_Header_Text}"
                                    Text="{Binding NewUnlockText}" VerticalAlignment="Center" HorizontalAlignment="Left" />
                    </local:FZMaterial>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ImageBrush x:Key="A_Brush_PostRace_Silhouette" ImageSource="/ForzaUI;component/Textures/Anthem/Highlights/SheenMask.png"/>
    <ImageBrush x:Key="A_Brush_PostRace_MaskGradient" ImageSource="/ForzaUI;component/Textures/Anthem/Highlights/DiagonalGradientWide.png"/>

    <local:LinearTransformConverter x:Key="A_Converter_RewardsItemIndexToHorizontalOffset"
                                    Scale="-24.8"
                                    Add="785" />

    <Style x:Key="A_Style_RewardsBonusItemWrapper"
           TargetType="FrameworkElement">
        <Setter Property="Margin"
                Value="0,0,0,17" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Width"
                Value="{Binding Path=(Selector.AlternationIndex), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_RewardsItemIndexToHorizontalOffset}}" />
    </Style>

    <Style x:Key="A_Style_RewardsBonusDockPanel"
           TargetType="DockPanel">
        <Setter Property="Width"
                Value="565" />
        <Setter Property="HorizontalAlignment"
                Value="Right" />
    </Style>

    <System:Double x:Key="A_Double_HatchingOpacity">0.25</System:Double>
    
    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_PostRace_Hatching">
        <Setter Property="ImageSourceNoPreload"
                Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Stripe_Overlay.png" />
        <Setter Property="TextureWrap"
                Value="True" />
        <!-- The stripes in the texture are 20%, intended alpha is 10% -->
        <Setter Property="Opacity"
                Value="{StaticResource A_Double_HatchingOpacity}" />
        <Setter Property="Margin"
                Value="0,0,-238,0" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform />
            </Setter.Value>
        </Setter>
        <Setter Property="local:FZMaterial.ImageTransform">
            <Setter.Value>
                <TransformGroup>
                    <!-- Cancel out negative margin -->
                    <ScaleTransform ScaleX="0.888"
                                    ScaleY="1" />
                    <!-- This scale transforms the image UVs so that instead of covering the whole page they are aspect correct:
                     image aspect 0.469
                     screen aspect 3.555 -->
                    <ScaleTransform ScaleX="0.132"
                                    ScaleY="1" />
                    <ScaleTransform ScaleX="0.3"
                                    ScaleY="0.3" />

                    <ScaleTransform ScaleX="0.78"
                                    ScaleY="0.78" />
                </TransformGroup>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                <BeginStoryboard>
                    <Storyboard RepeatBehavior="Forever">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <LinearDoubleKeyFrame KeyTime="0:0:2"
                                                  Value="-119" />
                            <LinearDoubleKeyFrame KeyTime="0:0:4"
                                                  Value="-238" />
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Style.Triggers>
    </Style>

    <!-- In the concept this uses 'Overlay' blend mode, which we don't support -->
    <Style TargetType="local:FZMaterial"
           x:Key="A_Style_FZMaterial_PostRacePanel_Vignette">
        <Setter Property="ImageSourceNoPreload"
                Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Vignette.png" />
        <Setter Property="Opacity"
                Value="0.3" />
    </Style>

    <System:TimeSpan x:Key="A_TimeSpan_FlashToCenter">0:0:0.8</System:TimeSpan>
    <System:TimeSpan x:Key="A_TimeSpan_FlashCenterToOff">0:0:0.9</System:TimeSpan>
    <System:TimeSpan x:Key="A_TimeSpan_FlashCenterToAlpha">0:0:0.2</System:TimeSpan>
    <System:TimeSpan x:Key="A_TimeSpan_FlashAlphaToOff">0:0:0.2</System:TimeSpan>

    <System:Double x:Key="A_Double_FlashOpacity">0.8</System:Double>

    <Color x:Key="A_Color_RewardFlash">#ffff</Color>

    <Style TargetType="Control"
           x:Key="A_Style_RewardFlash">
        <Setter Property="Tag"
                Value="{StaticResource A_Color_RewardFlash}" />
        <Setter Property="Opacity"
                Value="0" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform X="-2500" />
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Decorator Width="1000"
                                   Height="800"
                                   VerticalAlignment="Center">
                            <local:FZMaterial Width="4000"
                                              Height="800"
                                              Stretch="Fill"
                                              ImageSource="/ForzaUI;component/Textures/Data_Bound/PostRace/Swipe_Left_Mask.png"
                                              Color="{TemplateBinding Tag}"
                                              HorizontalAlignment="Right">
                                <local:FZMaterial.Preset>
                                    <local:FZMaterialPresetRoundtangle AlphaMode="Additive" />
                                </local:FZMaterial.Preset>
                            </local:FZMaterial>
                        </Decorator>
                        <Decorator Width="400" />
                        <Decorator Width="2500"
                                   Height="800"
                                   VerticalAlignment="Center">
                            <local:FZMaterial Width="4000"
                                              Height="800"
                                              Color="{TemplateBinding Tag}"
                                              HorizontalAlignment="Left">
                                <local:FZMaterial.Preset>
                                    <local:FZMaterialPresetRoundtangle Softness="200"
                                                                       AlphaMode="Additive" />
                                </local:FZMaterial.Preset>
                            </local:FZMaterial>
                        </Decorator>
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_BackgroundDarkGradient"
                                       BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                       GradientColorA="#0000"
                                       GradientColorB="#f000"
                                       GradientAngle="90" />
    <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_BackgroundLightGradient"
                                       BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                                       AlphaMode="Additive"
                                       GradientColorA="#ffff"
                                       GradientColorB="#0fff"
                                       GradientAngle="90" />

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_RowIn">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="-400" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                  Value="0"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.06"
                                  Value="3" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.14"
                                  Value="3" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                    Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_RowIn_Value">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="400" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                  Value="0"
                                  EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.06"
                                  Value="3" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.14"
                                    Value="3" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                  Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>
    
    <System:Double x:Key="A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset">-1000</System:Double>

    <!-- If the timing of the whooshes changes, this needs to be updated to match -->
    <System:TimeSpan x:Key="A_TimeSpan_WhooshDuration">0:0:0.3</System:TimeSpan>
    
    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromLeft">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)" 
                                           Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0.01" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.2"
                                    Value="0.01" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="3" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.3"
                                    Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <DoubleAnimationUsingKeyFrames x:Key="A_Animation_PostRace_WhooshInFromLeft_Slide_X"
                                   Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                   Storyboard.TargetName="{x:Null}">
        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}" />
        <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                              Value="-25"
                              EasingFunction="{local:LinearEasing}" />
        <EasingDoubleKeyFrame KeyTime="0:0:5.4"
                              Value="0"
                              EasingFunction="{local:LinearEasing}" />
    </DoubleAnimationUsingKeyFrames>
    <DoubleAnimationUsingKeyFrames x:Key="A_Animation_PostRace_WhooshInFromLeft_Slide_Opacity"
                                   Storyboard.TargetProperty="Opacity"
                                   Storyboard.TargetName="{x:Null}">
        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                Value="0.01" />
        <DiscreteDoubleKeyFrame KeyTime="0:0:0.2"
                                Value="0.01" />
        <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                              Value="3" />
        <DiscreteDoubleKeyFrame KeyTime="0:0:0.3"
                                Value="1" />
    </DoubleAnimationUsingKeyFrames>
    
    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromLeft_Slide">
        <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_X" />
        <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromLeft_Slide_Opacity" />
    </local:UIStoryboard>

    <System:Double x:Key="A_Double_PostRace_WhooshInFromRight_StartPositionXOffset">1000</System:Double>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromRight">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="0"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0.01" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.2"
                                    Value="0.01" />
            <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="3" />
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.3"
                                    Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <DoubleAnimationUsingKeyFrames x:Key="A_Animation_PostRace_WhooshInFromRight_Slide_X"
                                   Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                   Storyboard.TargetName="{x:Null}">
        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}" />
        <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                              Value="50"
                              EasingFunction="{local:LinearEasing}" />
        <EasingDoubleKeyFrame KeyTime="0:0:5.4"
                              Value="0"
                              EasingFunction="{local:LinearEasing}" />
    </DoubleAnimationUsingKeyFrames>
    <DoubleAnimationUsingKeyFrames x:Key="A_Animation_PostRace_WhooshInFromRight_Slide_Opacity"
                                   Storyboard.TargetProperty="Opacity"
                                   Storyboard.TargetName="{x:Null}">
        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                Value="0.01" />
        <DiscreteDoubleKeyFrame KeyTime="0:0:0.2"
                                Value="0.01" />
        <LinearDoubleKeyFrame KeyTime="0:0:0.3"
                              Value="3" />
        <DiscreteDoubleKeyFrame KeyTime="0:0:0.3"
                                Value="1" />
    </DoubleAnimationUsingKeyFrames>
    
    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshInFromRight_Slide">
        <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_X" />
        <StaticResourceExtension ResourceKey="A_Animation_PostRace_WhooshInFromRight_Slide_Opacity" />
    </local:UIStoryboard>


    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshOutToLeft">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                       BeginTime="0:0:0">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="{StaticResource A_Double_PostRace_WhooshInFromLeft_StartPositionXOffset}"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       BeginTime="0:0:0.0">
            <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>
    <local:UIStoryboard x:Key="A_Storyboard_PostRace_WhooshOutToRight">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)"
                                       BeginTime="0:0:0">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="{StaticResource A_Double_PostRace_WhooshInFromRight_StartPositionXOffset}"
                                  EasingFunction="{local:LinearEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                       BeginTime="0:0:0.0">
            <LinearDoubleKeyFrame KeyTime="0:0:0.2"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>


    <Storyboard x:Key="A_Storyboard_PostRace_SkipIntro">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetZ)" 
                                           Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[1].(TranslateTransform3D.OffsetX)" 
                                           Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ZPanel.Transform).(Transform3DGroup.Children)[0].(RotateTransform3D.Rotation).(AxisAngleRotation3D.Angle)" 
                                           Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" 
                                           Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="1" />
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

    <KeyTime x:Key="A_KeyTime_PostRaceBonusItems_Begin">0:0:0.4</KeyTime>
    <System:TimeSpan x:Key="A_TimeSpan_BonusItemsGap">0:0:0.3</System:TimeSpan>

    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem1"
                         KeyTime="{StaticResource A_KeyTime_PostRaceBonusItems_Begin}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem2"
                         KeyTime="{StaticResource A_KeyTime_BonusItem1}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem3"
                         KeyTime="{StaticResource A_KeyTime_BonusItem2}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem4"
                         KeyTime="{StaticResource A_KeyTime_BonusItem3}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem5"
                         KeyTime="{StaticResource A_KeyTime_BonusItem4}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem6"
                         KeyTime="{StaticResource A_KeyTime_BonusItem5}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem7"
                         KeyTime="{StaticResource A_KeyTime_BonusItem6}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_BonusItem8"
                         KeyTime="{StaticResource A_KeyTime_BonusItem7}"
                         Offset="{StaticResource A_TimeSpan_BonusItemsGap}" />

    <System:TimeSpan x:Key="A_TimeSpan_TotalsDelay">0:0:0.7</System:TimeSpan>

    <local:OffsetKeyTime x:Key="A_KeyTime_Totals1"
                         KeyTime="{StaticResource A_KeyTime_BonusItem1}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals2"
                         KeyTime="{StaticResource A_KeyTime_BonusItem2}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals3"
                         KeyTime="{StaticResource A_KeyTime_BonusItem3}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals4"
                         KeyTime="{StaticResource A_KeyTime_BonusItem4}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals5"
                         KeyTime="{StaticResource A_KeyTime_BonusItem5}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals6"
                         KeyTime="{StaticResource A_KeyTime_BonusItem6}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals7"
                         KeyTime="{StaticResource A_KeyTime_BonusItem7}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />
    <local:OffsetKeyTime x:Key="A_KeyTime_Totals8"
                         KeyTime="{StaticResource A_KeyTime_BonusItem8}"
                         Offset="{StaticResource A_TimeSpan_TotalsDelay}" />

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_Totals">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowTotal"
                                local:TriggerAnimation.KeyTime="0:0:0.0" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBalance"
                                local:TriggerAnimation.KeyTime="0:0:0.0" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="StartTotalTicker"
                                local:TriggerAnimation.KeyTime="0:0:0.5" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="Complete"
                                local:TriggerAnimation.KeyTime="0:0:2.0" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="AutoContinue"
                                local:TriggerAnimation.KeyTime="0:0:2.5" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_1Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals1}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_2Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals2}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_3Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals3}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_4Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals4}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_5Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals5}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_6Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem6"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem6}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals6}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_7Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem6"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem6}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem7"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem7}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals7}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_Show_8Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem6"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem6}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem7"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem7}" />
            <local:RaiseFzEvent Storyboard.TargetName="EventFire"
                                EventName="ShowBonusItem7"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem8}" />
            <local:BeginUIStoryboard Storyboard.TargetName="{x:Null}"
                                     Storyboard="{StaticResource A_Storyboard_PostRace_Show_Totals}"
                                     local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Totals8}"
                                     Name="ShowTotals" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="A_Storyboard_PostRace_AutoContinueAfterSkip">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:3.0"
                                EventName="AutoContinue" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>
    
    <ExponentialEase x:Key="A_ExponentialEase_InOut" EasingMode="EaseInOut"/>
    
    <local:UIStoryboard x:Key="A_Storyboard_PostRace_NewUnlockSheen" DurationOverride="0:0:2">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
            <DiscreteDoubleKeyFrame KeyTime="0:0:1.0" Value="1.0"/>
            <DiscreteDoubleKeyFrame KeyTime="0:0:3.0" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
        <SingleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(FadeInStart)" Storyboard.TargetName="{x:Null}">
            <EasingSingleKeyFrame KeyTime="0:0:1.0" Value="-0.46" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
            <EasingSingleKeyFrame KeyTime="0:0:2.4" Value="1" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
        </SingleAnimationUsingKeyFrames>
        <SingleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(FadeInEnd)" Storyboard.TargetName="{x:Null}">
            <EasingSingleKeyFrame KeyTime="0:0:1.0" Value="-0.35" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
            <EasingSingleKeyFrame KeyTime="0:0:2.4" Value="1.11" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
        </SingleAnimationUsingKeyFrames>
        <SingleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(FadeOutStart)" Storyboard.TargetName="{x:Null}">
            <EasingSingleKeyFrame KeyTime="0:0:1.0" Value="-0.21" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
            <EasingSingleKeyFrame KeyTime="0:0:2.4" Value="1.25" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
        </SingleAnimationUsingKeyFrames>
        <SingleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(FadeOutEnd)" Storyboard.TargetName="{x:Null}">
            <EasingSingleKeyFrame KeyTime="0:0:1.0" Value="-0.1" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
            <EasingSingleKeyFrame KeyTime="0:0:2.4" Value="1.36" EasingFunction="{StaticResource A_ExponentialEase_InOut}"/>
        </SingleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <Thickness x:Key="A_Thickness_RewardBox_WhiteMargin">25,0</Thickness>
    <System:Double x:Key="A_Double_RewardBox_StripWidth">19</System:Double>
    <System:Double x:Key="A_Double_RewardBox_CentreSize">536</System:Double>
    <Color x:Key="A_Color_Strip_NonRarity">#4d000000</Color>

    <ControlTemplate x:Key="A_Template_DefaultRarityReward">
        <ControlTemplate.Resources>
            <local:FZMaterialPresetRoundtangle x:Key="A_Preset_HorizonEdition_Gradient"
                        GradientAngle="90"
                        GradientColorA="{StaticResource A_Color_TombolaBackgroundGradientA_HorizonEdition}"
                        GradientColorB="{StaticResource A_Color_TombolaBackgroundGradientB_HorizonEdition}"/>
        </ControlTemplate.Resources>
        <Grid Margin="{StaticResource A_Thickness_RewardBox_WhiteMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_RewardBox_CentreSize}">
                <local:FZMaterial.Preset>
                    <local:FZMaterialPresetRoundtangle GradientAngle="0"
                                                       GradientColorA="#b3b3b3"
                                                       GradientColorB="#fff" />
                </local:FZMaterial.Preset>
                <local:FZMaterial Height="156"
                                  Margin="1,0"
                                  Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}"
                                  VerticalAlignment="Center" x:Name="Center" />
            </local:FZMaterial>
            <local:FZMaterial x:Name="Left"
                              Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Left" />
            <local:FZMaterial x:Name="Right"
                              Color="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Right" />
        </Grid>
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Rarity}" Value="{x:Static local:XAMLRarity.HorizonEdition}">
                <Setter TargetName="Left" Property="Color" Value="{StaticResource A_Color_TombolaBackgroundGradientA_HorizonEdition}"/>
                <Setter TargetName="Right" Property="Color" Value="{StaticResource A_Color_TombolaBackgroundGradientB_HorizonEdition}"/>
                <Setter TargetName="Center" Property="Preset" Value="{StaticResource A_Preset_HorizonEdition_Gradient}"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_CreditsReward">
        <Grid Margin="{StaticResource A_Thickness_RewardBox_WhiteMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_RewardBox_CentreSize}"
                              Preset="{Binding Rarity, Converter={StaticResource A_Converter_RarityToTombolaPrizeBackgroundGradientPreset}}" />

            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Left" />

            <local:FZMaterial CaptureSubgraph="True"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch">
                <Decorator ClipToBounds="True">
                    <local:FZMaterial CaptureSubgraph="True"
                                      Preset="{StaticResource A_FZMaterialPresetStreak_HighlightShadow}"
                                      RenderTransformOrigin="0.5,0.5">
                        <UIElement.RenderTransform>
                            <SkewTransform AngleX="25" />
                        </UIElement.RenderTransform>
                        <Viewbox Stretch="Uniform"
                                 Margin="50,30,80,0"
                                 HorizontalAlignment="Center"
                                 StretchDirection="DownOnly"
                                 local:ZPanel.TransformOrigin="0.5,0.5">
                            <local:ZPanel.Transform>
                                <local:ZRotation Angle="-6" />
                            </local:ZPanel.Transform>
                            <Grid RenderTransformOrigin="0.5,0.5"
                                  RenderTransform="{StaticResource A_Transform_Italic}">
                                <StackPanel Orientation="Horizontal">
                                    <!--The additive presets in here only work when you null the motionblur effect on the control root.  This is used by impact bloom on the total values-->
                                    <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_110_FilledCircle.png"
                                                      Height="144"
                                                      VerticalAlignment="Center"
                                                      Margin="0,-5,20,-5"
                                                      Width="144"
                                                      Visibility="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeCreditsVisibility}}" />
                                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                       CapHeight="{DynamicResource A_Double_TeamNameLabelCapHeight}"
                                                       Text="{Binding Amount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}"
                                                       VerticalAlignment="Center" />
                                </StackPanel>
                            </Grid>
                        </Viewbox>
                    </local:FZMaterial>
                </Decorator>
            </local:FZMaterial>

            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Right" />
        </Grid>
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_HornReward">
        <Grid Margin="{StaticResource A_Thickness_RewardBox_WhiteMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_RewardBox_CentreSize}">
                <local:FZMaterial.Preset>
                    <local:FZMaterialPresetRoundtangle GradientAngle="0"
                                                       GradientColorA="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}"
                                                       GradientColorB="{Binding Rarity, Converter={StaticResource A_Converter_RarityToColor}}" />
                </local:FZMaterial.Preset>
            </local:FZMaterial>
            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Left" />

            <local:FZMaterial CaptureSubgraph="True"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch">
                <Decorator ClipToBounds="True">
                    <local:FZMaterial CaptureSubgraph="True"
                                      Preset="{StaticResource A_FZMaterialPresetStreak_HighlightShadow}"
                                      RenderTransformOrigin="0.5,0.5">
                        <UIElement.RenderTransform>
                            <SkewTransform AngleX="25" />
                        </UIElement.RenderTransform>
                        <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Reward_Horn.png"
                                          Stretch="Uniform"
                                          Height="300"
                                          Margin="0,30,40,30">
                        </local:FZMaterial>
                    </local:FZMaterial>
                </Decorator>
            </local:FZMaterial>

            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Right" />
        </Grid>
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_ChatReward">
        <Grid Margin="{StaticResource A_Thickness_RewardBox_WhiteMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_RewardBox_CentreSize}">
                <local:FZMaterial.Preset>
                    <local:FZMaterialPresetRoundtangle GradientAngle="0"
                                                       GradientColorA="#1cea79"
                                                       GradientColorB="#1cea79" />
                </local:FZMaterial.Preset>
            </local:FZMaterial>
            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Left" />

            <local:FZMaterial CaptureSubgraph="True"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch">
                <Decorator ClipToBounds="True">
                    <local:FZMaterial CaptureSubgraph="True"
                                      Preset="{StaticResource A_FZMaterialPresetStreak_HighlightShadow}"
                                      RenderTransformOrigin="0.5,0.5">
                        <UIElement.RenderTransform>
                            <SkewTransform AngleX="25" />
                        </UIElement.RenderTransform>
                        <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Reward_QuickChat.png"
                                          Stretch="Uniform"
                                          Height="300"
                                          Margin="0,30,40,30">
                        </local:FZMaterial>
                    </local:FZMaterial>
                </Decorator>
            </local:FZMaterial>

            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Right" />
        </Grid>
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_WheelspinReward">
        <Grid Margin="{StaticResource A_Thickness_RewardBox_WhiteMargin}">
            <local:FZMaterial Width="{StaticResource A_Double_RewardBox_CentreSize}">
                <local:FZMaterial.Preset>
                    <local:FZMaterialPresetRoundtangle GradientAngle="0"
                                                       GradientColorA="#aa009b"
                                                       GradientColorB="#ed0268" />
                </local:FZMaterial.Preset>
            </local:FZMaterial>
            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Left" />

            <local:FZMaterial Color="{StaticResource A_Color_Strip_NonRarity}"
                              Width="{StaticResource A_Double_RewardBox_StripWidth}"
                              HorizontalAlignment="Right" />
        </Grid>
    </ControlTemplate>

    <local:MappingConverter x:Key="A_Converter_RewardTypeBoxTemplate"
                            Default="{StaticResource A_Template_DefaultRarityReward}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Horn}"
                                     Value="{StaticResource A_Template_HornReward}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}"
                                     Value="{StaticResource A_Template_ChatReward}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                     Value="{StaticResource A_Template_WheelspinReward}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}"
                                     Value="{StaticResource A_Template_WheelspinReward}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Credits}"
                                     Value="{StaticResource A_Template_CreditsReward}" />
    </local:MappingConverter>

    <ControlTemplate x:Key="A_Template_IndividualRewardThumbnail">
        <local:FZMaterial ImageSource="{Binding Thumbnail}"
                          Stretch="Uniform"
                          Margin="20,30,40,30" />
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_WheelspinRewardThumbnail">
        <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Wheelspin_Logo.png"
                          Stretch="Uniform"
                          Height="400"
                          Margin="0" />
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_SuperWheelspinRewardThumbnail">
        <local:FZMaterial ImageSourceNoPreload="/ForzaUI;component/Textures/Data_Bound/PostRace/Super_Wheelspin_Logo.png"
                          Stretch="Uniform"
                          Height="370"
                          Margin="0" />
    </ControlTemplate>

    <ControlTemplate x:Key="A_Template_NoIndividualThumbnail" />

    <local:MappingConverter x:Key="A_Converter_RewardTypeThumbnail"
                            Default="{StaticResource A_Template_IndividualRewardThumbnail}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Horn}"
                                     Value="{StaticResource A_Template_NoIndividualThumbnail}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Credits}"
                                     Value="{StaticResource A_Template_NoIndividualThumbnail}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}"
                                     Value="{StaticResource A_Template_NoIndividualThumbnail}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                     Value="{StaticResource A_Template_SuperWheelspinRewardThumbnail}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}"
                                     Value="{StaticResource A_Template_WheelspinRewardThumbnail}" />
    </local:MappingConverter>

    <ControlTemplate x:Key="A_Template_RewardBox">
        <Grid>
            <local:FZMaterial Height="540"
                              RenderTransformOrigin="0.5,0.5">
                <UIElement.RenderTransform>
                    <SkewTransform AngleX="-25" />
                </UIElement.RenderTransform>
                <Control Template="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeBoxTemplate}}" />
            </local:FZMaterial>

            <Control Template="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeThumbnail}}" />
        </Grid>
    </ControlTemplate>

    <System:Double x:Key="A_Double_RewardWidth">586</System:Double>
    
    <Style x:Key="A_Style_Control_RewardBox"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_FrameworkElement_PostRace_SmallAnimatedBlock}">
        <Setter Property="Width"
                Value="{StaticResource A_Double_RewardWidth}" />
        <Setter Property="Template"
                Value="{StaticResource A_Template_RewardBox}" />
    </Style>

    <local:MappingConverter x:Key="A_RewardToTopText"
                            Default="{x:Null}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}"
                                     Value="{local:Loc InGame.IDS_PostRace_Reward_QuickChat}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                     Value="{local:Loc InGame.IDS_PostRace_Reward_SuperWheelspin1stLine}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_RewardToMiddleText"
                            Default="{x:Null}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                     Value="{local:Loc InGame.IDS_PostRace_Reward_SuperWheelspin2ndLine}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}"
                                     Value="{local:Loc InGame.IDS_PostRace_Reward_Wheelspin}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_RewardTypeUnlockString"
                            Default="{local:Loc InGame.IDS_PostRace_Unlocked}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Horn}"
                                     Value="{local:Loc InGame.IDS_PostRace_Unlocked_Horn}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.QuickChatPhrase}"
                                     Value="{local:Loc InGame.IDS_PostRace_Unlocked_Chat}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Emote}"
                                     Value="{local:Loc InGame.IDS_PostRace_Unlocked_Emote}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_RewardTypeMultiplierVisibility"
                            Default="{x:Static Visibility.Collapsed}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Wheelspin}"
                                     Value="{x:Static Visibility.Visible}" />
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.SuperWheelspin}"
                                     Value="{x:Static Visibility.Visible}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_RewardTypeCreditsVisibility"
                            Default="{x:Static Visibility.Collapsed}">
        <local:MappingConverterEntry Key="{x:Static local:UIRewardType.Credits}"
                                     Value="{x:Static Visibility.Visible}" />
    </local:MappingConverter>

    <Style x:Key="A_Style_Control_PostRace_TeamNameBlock"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}">
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Viewbox Stretch="Uniform"
                             HorizontalAlignment="Left"
                             StretchDirection="DownOnly">
                        <Grid>
                            <StackPanel Orientation="Horizontal">
                                <!--The additive presets in here only work when you null the motionblur effect on the control root.  This is used by impact bloom on the total values-->
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                   Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                   CapHeight="{DynamicResource A_Double_TeamNameLabelCapHeight}"
                                                   x:Name="TickerValue"
                                                   Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                                   VerticalAlignment="Center" />

                            </StackPanel>
                        </Grid>
                    </Viewbox>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_PostRace_CustomLabelBlock"
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_PostRace_TeamNameBlock}">
        <Style.Resources>
            <System:Double x:Key="A_Double_TeamNameLabelCapHeight">134</System:Double>
        </Style.Resources>
        <Setter Property="Tag"
                Value="" />
        <Setter Property="HorizontalContentAlignment"
                Value="Left" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Viewbox Stretch="Uniform"
                             HorizontalAlignment="Left"
                             StretchDirection="DownOnly">
                        <Grid>
                            <StackPanel Orientation="Horizontal">
                                <!--The additive presets in here only work when you null the motionblur effect on the control root.  This is used by impact bloom on the total values-->
                                <local:FZMaterial ImageSource="/ForzaUI;component/Textures/Anthem/Icons/CRIcon/CR_110_FilledCircle.png"
                                                  Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                  Height="144"
                                                  VerticalAlignment="Center"
                                                  Margin="0,-5,20,-5"
                                                  Width="144"
                                                  Visibility="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeCreditsVisibility}}" />
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                   Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                   CapHeight="{DynamicResource A_Double_TeamNameLabelCapHeight}"
                                                   x:Name="TickerValue"
                                                   Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                                                   VerticalAlignment="Center" />
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}"
                                                   Preset="{StaticResource A_FZMaterialPresetAdditive}"
                                                   CapHeight="{DynamicResource A_Double_TeamNameLabelCapHeight}"
                                                   Margin="30,0,0,0"
                                                   x:Name="Multiplier"
                                                   Text="{Binding Amount, Converter={StaticResource A_Converter_StringFormatConverter}, ConverterParameter={local:Loc InGame.IDS_Rewards_MultiplierFormat}}"
                                                   Visibility="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeMultiplierVisibility}}"
                                                   VerticalAlignment="Center" />

                            </StackPanel>
                        </Grid>
                    </Viewbox>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding Amount, Converter={StaticResource A_CompareConverter}, ConverterParameter=2}"
                                     Value="-1">
                            <Setter TargetName="Multiplier"
                                    Property="Visibility"
                                    Value="Collapsed" />
                        </DataTrigger>
                        <DataTrigger Binding="{Binding RewardType}"
                                     Value="{x:Static local:UIRewardType.Credits}">
                            <Setter TargetName="TickerValue"
                                    Property="Text"
                                    Value="{Binding Amount, Converter={StaticResource A_NumUnitConverter_NoUnit_0dp}}" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="A_Style_Control_TotalValue" 
           TargetType="Control"
           BasedOn="{StaticResource A_Style_Control_PostRace_CustomLabelBlock}">
        <Setter Property="Tag"
                Value="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringToUpper}}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), ElementName=TotalValue}"
                         Value="{x:Null}">
                <Setter Property="Tag"
                        Value="{Binding Description, Converter={StaticResource A_StringToUpper}}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate TargetType="Control"
                     x:Key="A_Template_RewardTextBits">
        <Decorator HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Margin="0,0,0,0"
                   Width="1000"
                   local:ZPanel.TransformOrigin="0.5,0.5">
            <local:ZPanel.Transform>
                <local:ZRotation Angle="-6" />
            </local:ZPanel.Transform>
            <StackPanel Orientation="Vertical"
                        MaxWidth="900"
                        HorizontalAlignment="Center"
                        RenderTransform="{StaticResource A_Transform_Italic}">
                <Decorator x:Name="TopTextSlider">
                    <UIElement.RenderTransform>
                        <TranslateTransform />
                    </UIElement.RenderTransform>
                    <Control x:Name="TotalLabel"
                             MinHeight="43"
                             local:BindingProxy.A="{Binding RewardType, Converter={StaticResource A_RewardToTopText}}">
                        <FrameworkElement.Style>
                            <Style TargetType="Control"
                                   BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}">
                                <Setter Property="Tag"
                                        Value="{Binding Path=(local:BindingProxy.A), RelativeSource={RelativeSource Self}}" />
                                <Style.Triggers>
                                    <DataTrigger Binding="{Binding Path=(local:BindingProxy.A), ElementName=TotalLabel}"
                                                 Value="{x:Null}">
                                        <Setter Property="Tag"
                                                Value="{Binding Rarity, Converter={StaticResource A_Converter_RarityToNameString}}" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </FrameworkElement.Style>
                        <Control.Resources>

                            <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText"
                                   TargetType="local:FZTextBlock"
                                   BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}">
                                <Setter Property="FontFamily"
                                        Value="Horizon_B" />
                            </Style>

                        </Control.Resources>
                    </Control>
                </Decorator>

                <Decorator Height="22" />

                <Control x:Name="TotalValue"
                         local:BindingProxy.A="{Binding RewardType, Converter={StaticResource A_RewardToMiddleText}}"
                         Style="{DynamicResource A_Style_Control_TotalValue}">
                </Control>

                <Decorator Height="22" />

                <Decorator x:Name="BottomTextSlider">
                    <UIElement.RenderTransform>
                        <TranslateTransform />
                    </UIElement.RenderTransform>
                    <Control x:Name="BalanceValue"
                             HorizontalAlignment="Right"
                             Style="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}"
                             Tag="{Binding RewardType, Converter={StaticResource A_Converter_RewardTypeUnlockString}}">
                        <FrameworkElement.Resources>

                            <Style x:Key="A_Style_FZTextBlock_PostRace_TotalText"
                                   TargetType="local:FZTextBlock"
                                   BasedOn="{StaticResource A_Style_FZTextBlock_PostRace_TotalText}">
                                <Setter Property="FontFamily"
                                        Value="Horizon_B" />
                            </Style>

                        </FrameworkElement.Resources>
                    </Control>
                </Decorator>
            </StackPanel>
            <local:EventFire.FzTriggers>
                <local:BeginUIStoryboard local:EventFireTrigger.Event="WhooshIn"
                                         Name="WhooshIn">
                    <local:UIStoryboard FillBehavior="Stop">
                        <local:UIStoryboard.TriggerAnimation>
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_TotalLabel_WhooshIn"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromLeft}"
                                                     Storyboard.TargetName="TotalLabel" />
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_TotalValue_WhooshIn"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight}"
                                                     Storyboard.TargetName="TotalValue" />
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_BalanceValue_WhooshIn"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshInFromRight}"
                                                     Storyboard.TargetName="BalanceValue" />
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1"
                                                EventName="dummy" />
                        </local:UIStoryboard.TriggerAnimation>
                    </local:UIStoryboard>
                </local:BeginUIStoryboard>
                <BeginStoryboard local:EventFireTrigger.Event="WhooshIn"
                                 Name="WhooshIn2">
                    <Storyboard FillBehavior="Stop">
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TopTextSlider"
                                                       RepeatBehavior="Forever"
                                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                                       IsCumulative="True">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <LinearDoubleKeyFrame KeyTime="0:0:1"
                                                  Value="15" />
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BottomTextSlider"
                                                       RepeatBehavior="Forever"
                                                       Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                                       IsCumulative="True">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                    Value="0" />
                            <LinearDoubleKeyFrame KeyTime="0:0:1"
                                                  Value="-15" />
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </BeginStoryboard>
                <local:BeginUIStoryboard local:EventFireTrigger.Event="WhooshOut"
                                         Name="WhooshOut">
                    <local:UIStoryboard FillBehavior="Stop"
                                        Duration="0:0:1">
                        <local:UIStoryboard.TriggerAnimation>
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_TotalLabel_WhooshOut"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshOutToRight}"
                                                     Storyboard.TargetName="TotalLabel" />
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_TotalValue_WhooshOut"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshOutToLeft}"
                                                     Storyboard.TargetName="TotalValue" />
                            <local:BeginUIStoryboard local:TriggerAnimation.KeyTime="0:0:0"
                                                     Name="Begin_BalanceValue_WhooshOut"
                                                     Storyboard="{StaticResource A_Storyboard_PostRace_WhooshOutToLeft}"
                                                     Storyboard.TargetName="BalanceValue" />
                            <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1"
                                                EventName="dummy" />
                        </local:UIStoryboard.TriggerAnimation>
                    </local:UIStoryboard>
                </local:BeginUIStoryboard>
            </local:EventFire.FzTriggers>
        </Decorator>
    </ControlTemplate>

    <local:MappingConverter x:Key="A_Converter_InfluenceThreadIdToBackgroundGradientA" Default="#000000">
        <local:MappingConverterEntry Key="asphalt_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_asphalt_series}"/>
        <local:MappingConverterEntry Key="mixed_surface_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_mixed_surface_series}"/>
        <local:MappingConverterEntry Key="cross_country_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_cross_country_series}"/>
        <local:MappingConverterEntry Key="street_racing_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_street_racing_series}"/>
        <local:MappingConverterEntry Key="drag_racing" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_drag_racing}"/>
        <local:MappingConverterEntry Key="rivals" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_rivals}"/>
        <local:MappingConverterEntry Key="online_adventure_racing" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_adventure_racing}"/>
        <local:MappingConverterEntry Key="online_adventure_mixed" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_adventure_mixed}"/>
        <local:MappingConverterEntry Key="online_adventure_playground_games" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_adventure_playground_games}"/>
        <local:MappingConverterEntry Key="online_life_playground_games" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_life_playground_games}"/>
        <local:MappingConverterEntry Key="online_adventure_custom" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_adventure_custom}" />
        <local:MappingConverterEntry Key="hs_aaa_taxi" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_aaa_taxi}" />
        <local:MappingConverterEntry Key="hs_stunt_driver" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_stunt_driver}" />
        <local:MappingConverterEntry Key="hs_worlds_fastest" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_worlds_fastest}" />
        <local:MappingConverterEntry Key="hs_drift_club" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_drift_club}" />
        <local:MappingConverterEntry Key="hs_express_delivery" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_express_delivery}" />
        <local:MappingConverterEntry Key="hs_extreme_upgrades" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_extreme_upgrades}" />
        <local:MappingConverterEntry Key="hs_lets_play" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_lets_play}" />
        <local:MappingConverterEntry Key="hs_the_car_files" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_the_car_files}" />
        <local:MappingConverterEntry Key="hs_british_racing_green" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_british_racing_green}" />
        <local:MappingConverterEntry Key="hs_skill_streak" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_skill_streak}" />
        <local:MappingConverterEntry Key="hs_drift_club_2" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_drift_club_2}" />
        <local:MappingConverterEntry Key="online_adventure_drift" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_online_adventure_drift}" />
        <local:MappingConverterEntry Key="hs_hype_tour" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_hype_tour}" />
        <local:MappingConverterEntry Key="hs_story11" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientA_hs_story11}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_InfluenceThreadIdToBackgroundGradientB" Default="#000000">
        <local:MappingConverterEntry Key="asphalt_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_asphalt_series}"/>
        <local:MappingConverterEntry Key="mixed_surface_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_mixed_surface_series}"/>
        <local:MappingConverterEntry Key="cross_country_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_cross_country_series}"/>
        <local:MappingConverterEntry Key="street_racing_series" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_street_racing_series}"/>
        <local:MappingConverterEntry Key="drag_racing" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_drag_racing}"/>
        <local:MappingConverterEntry Key="rivals" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_rivals}"/>
        <local:MappingConverterEntry Key="online_adventure_racing" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_adventure_racing}"/>
        <local:MappingConverterEntry Key="online_adventure_mixed" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_adventure_mixed}"/>
        <local:MappingConverterEntry Key="online_adventure_playground_games" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_adventure_playground_games}"/>
        <local:MappingConverterEntry Key="online_life_playground_games" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_life_playground_games}"/>
        <local:MappingConverterEntry Key="online_adventure_custom" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_adventure_custom}" />
        <local:MappingConverterEntry Key="hs_aaa_taxi" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_aaa_taxi}" />
        <local:MappingConverterEntry Key="hs_stunt_driver" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_stunt_driver}" />
        <local:MappingConverterEntry Key="hs_worlds_fastest" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_worlds_fastest}" />
        <local:MappingConverterEntry Key="hs_drift_club" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_drift_club}" />
        <local:MappingConverterEntry Key="hs_express_delivery" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_express_delivery}" />
        <local:MappingConverterEntry Key="hs_extreme_upgrades" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_extreme_upgrades}" />
        <local:MappingConverterEntry Key="hs_lets_play" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_lets_play}" />
        <local:MappingConverterEntry Key="hs_the_car_files" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_the_car_files}" />
        <local:MappingConverterEntry Key="hs_british_racing_green" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_british_racing_green}" />
        <local:MappingConverterEntry Key="hs_skill_streak" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_skill_streak}" />
        <local:MappingConverterEntry Key="hs_drift_club_2" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_drift_club_2}" />
        <local:MappingConverterEntry Key="online_adventure_drift" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_online_adventure_drift}" />
        <local:MappingConverterEntry Key="hs_hype_tour" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_hype_tour}" />
        <local:MappingConverterEntry Key="hs_story11" Value="{StaticResource A_Color_InfluenceThread_BackgroundGradientB_hs_story11}" />
    </local:MappingConverter>

    <local:MappingConverter x:Key="A_Converter_InfluenceThreadIdToTextBackground" Default="#000000">
        <local:MappingConverterEntry Key="asphalt_series" Value="{StaticResource A_Color_InfluenceThread_TextBackground_asphalt_series}"/>
        <local:MappingConverterEntry Key="mixed_surface_series" Value="{StaticResource A_Color_InfluenceThread_TextBackground_mixed_surface_series}"/>
        <local:MappingConverterEntry Key="cross_country_series" Value="{StaticResource A_Color_InfluenceThread_TextBackground_cross_country_series}"/>
        <local:MappingConverterEntry Key="street_racing_series" Value="{StaticResource A_Color_InfluenceThread_TextBackground_street_racing_series}"/>
        <local:MappingConverterEntry Key="drag_racing" Value="{StaticResource A_Color_InfluenceThread_TextBackground_drag_racing}"/>
        <local:MappingConverterEntry Key="rivals" Value="{StaticResource A_Color_InfluenceThread_TextBackground_rivals}"/>
        <local:MappingConverterEntry Key="online_adventure_racing" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_adventure_racing}"/>
        <local:MappingConverterEntry Key="online_adventure_mixed" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_adventure_mixed}"/>
        <local:MappingConverterEntry Key="online_adventure_playground_games" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_adventure_playground_games}"/>
        <local:MappingConverterEntry Key="online_life_playground_games" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_life_playground_games}"/>
        <local:MappingConverterEntry Key="online_adventure_custom" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_adventure_custom}" />
        <local:MappingConverterEntry Key="hs_aaa_taxi" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_aaa_taxi}" />
        <local:MappingConverterEntry Key="hs_stunt_driver" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_stunt_driver}" />
        <local:MappingConverterEntry Key="hs_worlds_fastest" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_worlds_fastest}" />
        <local:MappingConverterEntry Key="hs_drift_club" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_drift_club}" />
        <local:MappingConverterEntry Key="hs_express_delivery" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_express_delivery}" />
        <local:MappingConverterEntry Key="hs_extreme_upgrades" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_extreme_upgrades}" />
        <local:MappingConverterEntry Key="hs_lets_play" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_lets_play}" />
        <local:MappingConverterEntry Key="hs_the_car_files" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_the_car_files}" />
        <local:MappingConverterEntry Key="hs_british_racing_green" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_british_racing_green}" />
        <local:MappingConverterEntry Key="hs_skill_streak" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_skill_streak}" />
        <local:MappingConverterEntry Key="hs_drift_club_2" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_drift_club_2}" />
        <local:MappingConverterEntry Key="online_adventure_drift" Value="{StaticResource A_Color_InfluenceThread_TextBackground_online_adventure_drift}" />
        <local:MappingConverterEntry Key="hs_hype_tour" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_hype_tour}" />
        <local:MappingConverterEntry Key="hs_story11" Value="{StaticResource A_Color_InfluenceThread_TextBackground_hs_story11}" />
    </local:MappingConverter>
</ResourceDictionary>
