<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">

    <Double x:Key="H_Angle_PostRaceItalic">-8</Double>

    <SkewTransform
        x:Key="H_Transform_PostRaceItalicise"
        AngleX="{StaticResource H_Angle_PostRaceItalic}"/>
    <SkewTransform
        x:Key="H_Transform_PostRaceStraighten"
        AngleX="{Convert {StaticResource H_Angle_PostRaceItalic}, Converter={LinearTransformConverter Scale=-1}}"/>

    <Style
        x:Key="H_Style_PostRaceItalicise"
        TargetType="{Type FrameworkElement}">
        <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
        <Setter Property="RenderTransform" Value="{StaticResource H_Transform_PostRaceItalicise}"/>
    </Style>

    <Style
        x:Key="H_Style_PostRaceStraighten"
        TargetType="{Type FrameworkElement}">
        <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
        <Setter Property="RenderTransform" Value="{StaticResource H_Transform_PostRaceStraighten}"/>
    </Style>

    <Style
        x:Key="H_Style_PostRaceBackgroundGradient"
        TargetType="{Type Control}"
        BasedOn="{StaticResource H_Style_PostRaceTransition_0}">
        <Setter Property="Width" Value="718"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type Control}">
                    <Grid>
                        <FZMaterial
                            Width="1000"
                            HorizontalAlignment="Left"
                            Color="{StaticResource H_Color_Glass_Purple_20pc}">
                            <FZMaterial.Preset>
                                <FZMaterialPresetGlassRoundtangle BlurAmount="Low"/>
                            </FZMaterial.Preset>
                        </FZMaterial>
                        <FZMaterial
                            Width="500"
                            HorizontalAlignment="Left"
                            Preset="{Roundtangle GradientColorA={StaticResource H_Color_Glass_Purple_40pc}, GradientColorB={StaticResource H_Color_Transparent_Purple}, GradientAngle=90}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="H_Style_PostRaceContainer"
        TargetType="{Type FrameworkElement}"
        BasedOn="{StaticResource H_Style_PostRaceTransition_1}">
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="Margin" Value="0,296,82,0" />
    </Style>

    <Style
        x:Key="H_Run_PostRaceTitle_HIGHLIGHT"
        TargetType="{Type FZRun}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
    </Style>

    <Style
        x:Key="H_Run_PostRaceTitle_UNIT"
        TargetType="{Type FZRun}">
        <Setter Property="CapHeight" Value="{Binding ResizedCapHeight, RelativeSource={RelativeSource AncestorType=FZTextBlock}, Converter={LinearTransformConverter Scale=0.65}}" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
    </Style>

    <MappingConverter x:Key="A_MappingConverter_PostRaceTitle" >
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource H_Run_PostRaceTitle_HIGHLIGHT}" />
        <MappingConverterEntry Key="{NoCase UNIT}" Value="{StaticResource H_Run_PostRaceTitle_UNIT}" />
    </MappingConverter>

    <Style
        x:Key="H_Style_PostRace_TitleText"
        TargetType="{Type FZTextBlock}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="FontFamily" Value="Horizon_C" />
        <Setter Property="CapHeight" Value="150" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_PostRaceTitle}"/>
        <Setter Property="Effect">
            <Setter.Value>
                <DropShadowEffect
                    Color="{StaticResource A_Color_DropShadow}"
                    BlurRadius="0"
                    ShadowDepth="3" />
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="H_Run_PostRaceRow_UNIT"
        TargetType="{Type FZRun}">
        <Setter Property="CapHeight" Value="{Binding ResizedCapHeight, RelativeSource={RelativeSource AncestorType=FZTextBlock}, Converter={LinearTransformConverter Scale=0.75}}" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
    </Style>

    <MappingConverter x:Key="A_MappingConverter_PostRaceRow" >
        <MappingConverterEntry Key="{NoCase UNIT}" Value="{StaticResource H_Run_PostRaceRow_UNIT}" />
    </MappingConverter>

    <Color
        x:Key="H_Default_Player_Outline_Color">#848382</Color>
    <Color
        x:Key="H_Default_Player_Background_Color">#19FFFFFF</Color>

    <Style TargetType="FZMaterial" x:Key="H_Style_FZMaterial_Player_Outline">
        <Setter Property="Color" Value="{StaticResource H_Default_Player_Outline_Color}" />
    </Style>
    
    <Style
        x:Key="H_Style_PostRaceRow_HeaderText"
        TargetType="{Type FZTextBlock}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="Stretch" Value="None" />
        <Setter Property="CapHeight" Value="20" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Margin" Value="14,0" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_PostRaceRow}"/>
    </Style>

    <Style
        x:Key="H_Style_PostRaceRow_ContentText"
        TargetType="{Type FZTextBlock}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
        <Setter Property="FontFamily" Value="Horizon_A" />
        <Setter Property="CapHeight" Value="20" />
        <Setter Property="HorizontalAlignment" Value="Right" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Margin" Value="14,0" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_PostRaceRow}"/>
    </Style>

    <Style
        x:Key="H_Style_HeaderedContentControl_PostRaceRow"
        TargetType="{Type HeaderedContentControl}">
        <Setter Property="Width" Value="644"/>
        <Setter Property="Height" Value="44"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform/>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type HeaderedContentControl}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto" MinWidth="172"/>
                        </Grid.ColumnDefinitions>
                        <FZMaterial Color="{DynamicDataBinding HeaderBackgroundColor, FallbackValue={StaticResource H_Color_HighlightedItemBg}}">
                            <ContentPresenter ContentSource="Header" Grid.Column="0" />
                        </FZMaterial>
                        <FZMaterial Color="{DynamicDataBinding RowBackgroundColor, FallbackValue={StaticResource H_Color_Primary_Black}}" Grid.Column="1">
                            <ContentPresenter ContentSource="Content" />
                        </FZMaterial>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                        Text="{Binding}"
                        Style="{DynamicDataBinding HeaderTextStyle, FallbackValue={StaticResource H_Style_PostRaceRow_HeaderText}}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                        Text="{Binding}"
                        Style="{DynamicDataBinding ContentTextStyle, FallbackValue={StaticResource H_Style_PostRaceRow_ContentText}}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Style x:Key="H_Style_PostRaceRow_FooterText"
        TargetType="{Type FZTextBlock}"
        BasedOn="{StaticResource H_Style_PostRaceRow_HeaderText}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Purple}"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="CapHeight" Value="22"/>
    </Style>

    <Style
        x:Key="H_Style_HeaderedContentControl_PostRaceFooter"
        TargetType="{Type HeaderedContentControl}"
        BasedOn="{StaticResource H_Style_HeaderedContentControl_PostRaceRow}">
        <Setter Property="Width" Value="664"/>
        <Setter Property="Height" Value="52"/>
        <Setter Property="DynamicData.Data">
            <Setter.Value>
                <DynamicDataSource>
                    <DynamicDataItem Name="HeaderBackgroundColor" DataType="{Type Color}" Value="{StaticResource H_Color_Primary_White}" />
                    <DynamicDataItem Name="RowBackgroundColor" DataType="{Type Color}" Value="{StaticResource H_Color_Primary_Purple}" />
                    <DynamicDataItem Name="HeaderTextStyle" DataType="{Type Style}" Value="{StaticResource H_Style_PostRaceRow_FooterText}" />
                    <DynamicDataItem Name="ContentTextStyle" DataType="{Type Style}">
                        <DynamicDataItem.Value>
                            <Style TargetType="{Type FZTextBlock}"
                                BasedOn="{StaticResource H_Style_PostRaceRow_ContentText}">
                                <Setter Property="CapHeight" Value="30"/>
                            </Style>
                        </DynamicDataItem.Value>
                    </DynamicDataItem>
                </DynamicDataSource>
            </Setter.Value>
        </Setter>
    </Style>

    <Style
        x:Key="H_Style_PostRaceRow_EmptyBackground"
        TargetType="{Type FZMaterial}">
        <Setter Property="Margin" Value="8,0,0,0" />
        <Setter Property="Height" Value="44"/>
        <Setter Property="Preset" Value="{Roundtangle GradientColorA={StaticResource H_Color_Glass_Purple_40pc}, GradientColorB={StaticResource H_Color_Transparent_Purple}, GradientAngle=90}"/>
    </Style>

    <Style x:Key="H_Style_PostRaceRow_Tick"
        TargetType="{Type FZMaterial}">
        <Setter Property="Width" Value="50" />
        <Setter Property="Height" Value="50" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
        <Setter Property="HorizontalAlignment" Value="Center" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Tick_Icon.png" />
        <Setter Property="RenderTransformOrigin" Value="0.4,0.6" />
        <Setter Property="RenderTransform">
            <Setter.Value>
                <ScaleTransform ScaleY="{Binding ScaleX, RelativeSource={RelativeSource Self}}"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="H_Style_PostRaceRows_ContainerWithHeader"
           TargetType="{Type HeaderedContentControl}">
        <Setter Property="Height" Value="236"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="Margin" Value="0,36,0,16"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type HeaderedContentControl}">
                    <StackPanel Orientation="Horizontal">
                        <FZMaterial
                            Color="{DynamicDataBinding LabelBackgroundColor, FallbackValue={StaticResource H_Color_Primary_Yellow}}"
                            Height="44"
                            VerticalAlignment="Top"
                            HorizontalAlignment="Right"
                            Margin="0,0,4,0">
                            <ContentPresenter ContentSource="Header" />
                        </FZMaterial>
                        <ContentPresenter ContentSource="Content" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HeaderTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZTextBlock
                        Text="{Binding}"
                        Style="{StaticResource H_Style_PostRaceRow_HeaderText}"
                        Color="{DynamicDataBinding LabelTextColor, FallbackValue={StaticResource H_Color_Primary_Purple}}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <UIStoryboard x:Key="H_Storyboard_PostRace_StartBar">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.3"
                          Storyboard.TargetName="{Null}"
                          EventName="StartLevelBarFillAnimation" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <KeyTime x:Key="H_KeyTime_PostRaceRows_Begin">0:0:0.6</KeyTime>
    <TimeSpan x:Key="H_TimeSpan_PostRaceRows_Show">0:0:0.35</TimeSpan>
    <Duration x:Key="H_Duration_PostRaceRows_Show">0:0:0.35</Duration>
    <TimeSpan x:Key="H_TimeSpan_PostRaceRows_Slide">0:0:0.225</TimeSpan>
    <Duration x:Key="H_Duration_PostRaceRows_Slide">0:0:0.225</Duration>
    <TimeSpan x:Key="H_TimeSpan_PostRaceRows_SlideAndShow">0:0:0.575</TimeSpan>
    <Duration x:Key="H_Duration_PostRaceRows_SlideAndShow">0:0:0.575</Duration>

    <Duration x:Key="H_Duration_PostRaceRow_TickShow">0:0:0.5</Duration>

    <Style x:Key="H_Style_PostRaceRows_ItemContainerStyle"
        TargetType="{Type FrameworkElement}">
        <Setter Property="Margin" Value="0,2" />
    </Style>

    <Style x:Key="H_Style_PostRaceRows_Items_NoScroll"
        TargetType="{Type ItemsControl}">
        <Setter Property="Margin" Value="0,-2"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="ItemContainerStyle" Value="{StaticResource H_Style_PostRaceRows_ItemContainerStyle}"/>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate DataType="{Type RewardBonusDataItem}">
                    <HeaderedContentControl
                        x:Name="Content"
                        Style="{StaticResource H_Style_HeaderedContentControl_PostRaceRow}"
                        Opacity="0"
                        Content="{Binding Value}"
                        HeaderTemplate="{Null}">
                        <HeaderedContentControl.Header>
                            <DockPanel>
                                <FZMaterial Width="25" Height="25" Color="{StaticResource H_Color_Primary_White}" DockPanel.Dock="Left" Margin="12,0,0,0">
                                    <FZMaterial.Preset>
                                        <FZMaterialPresetRoundtangleStroke CornerRadius="{Binding (DynamicData.Data).TickBoxCornerRadius, FallbackValue=3, RelativeSource={RelativeSource TemplatedParent}}" Thickness="2.5" />
                                    </FZMaterial.Preset>
                                    <Grid Style="{StaticResource H_Style_PostRaceStraighten}"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        Height="0"
                                        Width="0"
                                        Margin="0,-15,-12,0">
                                        <FZMaterial
                                            x:Name="Tick"
                                            Style="{StaticResource H_Style_PostRaceRow_Tick}"
                                            Opacity="0"/>
                                        <FZMaterial
                                            x:Name="Tick_Ghost"
                                            Style="{StaticResource H_Style_PostRaceRow_Tick}"
                                            Opacity="0"/>
                                    </Grid>
                                </FZMaterial>
                                <FZTextBlock
                                    Text="{Binding Name, Converter={StringToUpper}}"
                                    Style="{StaticResource H_Style_PostRaceRow_HeaderText}"/>
                            </DockPanel>
                        </HeaderedContentControl.Header>
                    </HeaderedContentControl>
                    <DataTemplate.Triggers>
                        <DataTrigger Binding="{Binding Showing}" Value="True">
                            <Setter TargetName="Content" Property="Opacity" Value="1" />
                            <Setter TargetName="Tick" Property="Opacity" Value="1" />
                        </DataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding Showing}" Value="True"/>
                                <Condition Binding="{Binding WasIntroSkipped, RelativeSource={RelativeSource AncestorType=Page}}" Value="False"/>
                            </MultiDataTrigger.Conditions>
                            <Setter TargetName="Content" Property="Opacity" Value="0" />
                            <Setter TargetName="Tick" Property="Opacity" Value="0" />
                            <MultiDataTrigger.EnterActions>
                                <BeginUIStoryboard Name="PostRaceRow_Item_Show">
                                    <BeginUIStoryboard.Storyboard>
                                        <UIStoryboard>
                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="Opacity"
                                                Storyboard.TargetName="Content"
                                                Duration="{StaticResource H_Duration_PostRaceRows_Show}">
                                                <DiscreteDoubleKeyFrame KeyTime="0%" Value="0" />
                                                <EasingDoubleKeyFrame KeyTime="50%" Value="1" EasingFunction="{QuarticEasing EasingMode=EaseOut}"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                                Storyboard.TargetName="Content"
                                                Duration="{StaticResource H_Duration_PostRaceRows_Show}">
                                                <DiscreteDoubleKeyFrame KeyTime="0%" Value="718"/>
                                                <EasingDoubleKeyFrame KeyTime="100%" Value="0" EasingFunction="{CubicEasing EasingMode=EaseOut}"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="(UIElement.Effect)"
                                                Storyboard.TargetName="Content"
                                                Duration="{StaticResource H_Duration_PostRaceRows_Show}"
                                                FillBehavior="Stop">
                                                <DiscreteObjectKeyFrame KeyTime="0%" Value="{StaticResource A_MotionBlurEffect}"/>
                                                <DiscreteObjectKeyFrame KeyTime="100%" Value="{StaticResource A_MotionBlurEffect}"/>
                                            </ObjectAnimationUsingKeyFrames>

                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="Opacity"
                                                Storyboard.TargetName="Tick"
                                                Duration="{StaticResource H_Duration_PostRaceRow_TickShow}"
                                                BeginTime="0:0:0.15">
                                                <DiscreteDoubleKeyFrame KeyTime="15%" Value="0" />
                                                <EasingDoubleKeyFrame KeyTime="40%" Value="1" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"
                                                Storyboard.TargetName="Tick"
                                                Duration="{StaticResource H_Duration_PostRaceRow_TickShow}"
                                                BeginTime="0:0:0.15"
                                                FillBehavior="Stop">
                                                <DiscreteDoubleKeyFrame KeyTime="0%" Value="3.5"/>
                                                <EasingDoubleKeyFrame KeyTime="50%" Value="1" EasingFunction="{QuarticEasing EasingMode=EaseIn}"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="Opacity"
                                                Storyboard.TargetName="Tick_Ghost"
                                                Duration="{StaticResource H_Duration_PostRaceRow_TickShow}"
                                                BeginTime="0:0:0.15"
                                                FillBehavior="Stop">
                                                <DiscreteDoubleKeyFrame KeyTime="60%" Value="1" />
                                                <LinearDoubleKeyFrame KeyTime="100%" Value="0" />
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames
                                                Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"
                                                Storyboard.TargetName="Tick_Ghost"
                                                Duration="{StaticResource H_Duration_PostRaceRow_TickShow}"
                                                BeginTime="0:0:0.15"
                                                FillBehavior="Stop">
                                                <DiscreteDoubleKeyFrame KeyTime="60%" Value="1"/>
                                                <EasingDoubleKeyFrame KeyTime="100%" Value="2.5" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </UIStoryboard>
                                    </BeginUIStoryboard.Storyboard>
                                </BeginUIStoryboard>
                            </MultiDataTrigger.EnterActions>
                            <MultiDataTrigger.ExitActions>
                                <StopStoryboard BeginStoryboardName="PostRaceRow_Item_Show"/>
                            </MultiDataTrigger.ExitActions>
                        </MultiDataTrigger>
                        <MultiDataTrigger>
                            <MultiDataTrigger.Conditions>
                                <Condition Binding="{Binding Showing}" Value="False"/>
                                <Condition Binding="{Binding WasIntroSkipped, RelativeSource={RelativeSource AncestorType=Page}}" Value="False"/>
                            </MultiDataTrigger.Conditions>
                            <MultiDataTrigger.EnterActions>
                                <BeginUIStoryboard Name="PostRaceRow_Item_Hide">
                                    <BeginUIStoryboard.Storyboard>
                                        <UIStoryboard DurationOverride="{StaticResource H_Duration_PostRaceRows_Slide}" FillBehavior="Stop">
                                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content">
                                                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0" EasingFunction="{QuadraticEasing EasingMode=EaseOut}" />
                                                <DiscreteDoubleKeyFrame KeyTime="0:0:1" Value="0" />
                                            </DoubleAnimationUsingKeyFrames>
                                        </UIStoryboard>
                                    </BeginUIStoryboard.Storyboard>
                                </BeginUIStoryboard>
                            </MultiDataTrigger.EnterActions>
                            <MultiDataTrigger.ExitActions>
                                <StopStoryboard BeginStoryboardName="PostRaceRow_Item_Hide"/>
                            </MultiDataTrigger.ExitActions>
                        </MultiDataTrigger>
                    </DataTemplate.Triggers>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <MultiConverter x:Key="H_LastHiddenBonusIndexToTranslateY">
        <MultiConverterEntry Converter="{LinearTransformConverter Add=1}"/>
        <MultiConverterEntry Converter="{LinearTransformConverter Scale=-48}"/>
    </MultiConverter>

    <Style x:Key="H_Style_PostRaceRows_Items"
        TargetType="{Type ItemsControl}"
        BasedOn="{StaticResource H_Style_PostRaceRows_Items_NoScroll}">
        <Setter Property="BindingProxy.A" Value="{Binding LastHiddenBonusIndex, RelativeSource={RelativeSource AncestorType=Page}, FallbackValue=0, Converter={StaticResource H_LastHiddenBonusIndexToTranslateY}}"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TranslateTransform Y="{Binding (BindingProxy.A), RelativeSource={RelativeSource AncestorType=FrameworkElement}}"/>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding WasIntroSkipped, RelativeSource={RelativeSource AncestorType=Page}}" Value="False">
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <TranslateTransform Y="{Binding (BlendValue.Output), RelativeSource={RelativeSource AncestorType=FrameworkElement}}"/>
                    </Setter.Value>
                </Setter>
                <Setter Property="BlendValue.Input" Value="{Binding (BindingProxy.A), RelativeSource={RelativeSource Self}}"/>
                <Setter Property="BlendValue.InputChangedStoryboard">
                    <Setter.Value>
                        <UIStoryboard>
                            <DoubleAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(BlendValue.Blend)"
                                Storyboard.TargetName="{Null}"
                                Duration="{StaticResource H_Duration_PostRaceRows_Slide}">
                                <DiscreteDoubleKeyFrame KeyTime="0%" Value="0"/>
                                <EasingDoubleKeyFrame KeyTime="100%" Value="1" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames
                                Storyboard.TargetProperty="(UIElement.Effect)"
                                Storyboard.TargetName="{Null}"
                                FillBehavior="Stop"
                                Duration="{StaticResource H_Duration_PostRaceRows_Slide}">
                                <DiscreteObjectKeyFrame KeyTime="0%" Value="{StaticResource A_MotionBlurEffect}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </UIStoryboard>
                    </Setter.Value>
                </Setter>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="H_Style_PostRaceRows_EmptyItems"
        TargetType="{Type TickerItemsControl}"
        BasedOn="{StaticResource H_Style_PostRaceRows_Items_NoScroll}">
        <Setter Property="Max" Value="5"/>
        <Setter Property="ItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <FZMaterial Style="{StaticResource H_Style_PostRaceRow_EmptyBackground}"/>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <OffsetKeyTime x:Key="H_KeyTime_BonusItem1"
                   KeyTime="{StaticResource H_KeyTime_PostRaceRows_Begin}"
                   Offset="0:0:0.0" />
    <OffsetKeyTime x:Key="H_KeyTime_BonusItem2"
                   KeyTime="{StaticResource H_KeyTime_BonusItem1}"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Show}" />
    <OffsetKeyTime x:Key="H_KeyTime_BonusItem3"
                   KeyTime="{StaticResource H_KeyTime_BonusItem2}"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Show}" />
    <OffsetKeyTime x:Key="H_KeyTime_BonusItem4"
                   KeyTime="{StaticResource H_KeyTime_BonusItem3}"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Show}" />
    <OffsetKeyTime x:Key="H_KeyTime_BonusItem5"
                   KeyTime="{StaticResource H_KeyTime_BonusItem4}"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Show}" />
    <OffsetKeyTime x:Key="H_KeyTime_BonusItem6"
                   KeyTime="{StaticResource H_KeyTime_BonusItem5}"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Show}" />

    <OffsetKeyTime x:Key="H_KeyTime_BonusItemN"
                   KeyTime="0:0:0.0"
                   Offset="{StaticResource H_TimeSpan_PostRaceRows_Slide}" />

    <MappingConverter x:Key="H_BonusItemNumberToTimeSpan" Default="{StaticResource H_TimeSpan_PostRaceRows_SlideAndShow}">
        <MappingConverterEntry Key="1" Value="{StaticResource H_TimeSpan_PostRaceRows_Show}"/>
        <MappingConverterEntry Key="2" Value="{StaticResource H_TimeSpan_PostRaceRows_Show}"/>
        <MappingConverterEntry Key="3" Value="{StaticResource H_TimeSpan_PostRaceRows_Show}"/>
        <MappingConverterEntry Key="4" Value="{StaticResource H_TimeSpan_PostRaceRows_Show}"/>
        <MappingConverterEntry Key="5" Value="{StaticResource H_TimeSpan_PostRaceRows_Show}"/>
    </MappingConverter>

    <UIStoryboard x:Key="PART_H_Storyboard_PostRaceRows_Show_1Bonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent EventName="DummyEventToForceDesiredStoryboardDuration"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="PART_H_Storyboard_PostRaceRows_Show_2Bonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
            <RaiseFzEvent EventName="DummyEventToForceDesiredStoryboardDuration"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem3}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="PART_H_Storyboard_PostRaceRows_Show_3Bonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem3}" />
            <RaiseFzEvent EventName="DummyEventToForceDesiredStoryboardDuration"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem4}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="PART_H_Storyboard_PostRaceRows_Show_4Bonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem3}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem4}" />
            <RaiseFzEvent EventName="DummyEventToForceDesiredStoryboardDuration"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem5}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="PART_H_Storyboard_PostRaceRows_Show_5Bonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem3}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem4}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem5}" />
            <RaiseFzEvent EventName="DummyEventToForceDesiredStoryboardDuration"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem6}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="H_Storyboard_PostRaceRows_Show_6OrGreaterBonus">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="StartTotalTicker"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem1}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem2}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem3}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem4}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem5}" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowRemainingBonusItems"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItem6}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <UIStoryboard x:Key="H_Storyboard_PostRaceRows_Show_RemainingBonus"
                  Duration="{StaticResource H_Duration_PostRaceRows_SlideAndShow}">
        <UIStoryboard.TriggerAnimation>
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="HideOldestBonusItem"
                          TriggerAnimation.KeyTime="0:0:0.0" />
            <RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                          EventName="ShowNextBonusItem"
                          TriggerAnimation.KeyTime="{StaticResource H_KeyTime_BonusItemN}" />
        </UIStoryboard.TriggerAnimation>
    </UIStoryboard>

    <Style x:Key="H_Style_FZTextBlock_PostRaceUserProfile_Name"
           TargetType="local:FZTextBlock"
           BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
        <Setter Property="CapHeight" Value="20" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsLocalPlayer}" Value="True">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="H_DataTemplate_PostRaceUserProfile" DataType="{Type UserProfileDataSource}">
        <FZMaterial Style="{DynamicResource H_Style_FZMaterial_Player_Outline}" Width="528" Height="48">
            <FZMaterial.Preset>
                <FZMaterialPresetRoundtangleStroke Thickness="4" CornerRadius="6"/>
            </FZMaterial.Preset>

            <FZMaterial Preset="{StaticResource H_GlassRoundtangle_Medium_2px}"  Color="{StaticResource H_Default_Player_Background_Color}" Margin="4">
                
                <StackPanel Orientation="Horizontal">
                    <Control x:Name="Player_Level" Template="{StaticResource A_ControlTemplate_PlayerLevel_WithPrestige}" Margin="12,0"/>
                    <local:FZTextBlock VerticalAlignment="Center" Style="{StaticResource H_Style_FZTextBlock_PostRaceUserProfile_Name}"
                            Text="{Binding FormattedGamertag}"/>
                </StackPanel>
            </FZMaterial>
        </FZMaterial>
    </DataTemplate>

    <Style x:Key="H_Style_PostRaceGlow" TargetType="{Type ContentControl}">
        <Style.Resources>
            <DataTemplate DataType="{Type Color}">
                <Grid>
                    <FZMaterial
                        Margin="-20"
                        Color="{Binding}"
                        Preset="{Roundtangle AlphaMode=Additive, CornerRadius=40, Softness=40}"/>
                    <FZMaterial
                        Preset="{Roundtangle AlphaMode=Additive}"
                        Opacity="0.5"/>
                </Grid>
            </DataTemplate>
        </Style.Resources>
        <Setter Property="Opacity" Value="0"/>
        <Setter Property="Content" Value="{StaticResource H_Color_Primary_White}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type ContentControl}">
                    <ContentPresenter />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="H_Style_PostRaceSheen" TargetType="{Type FZMaterial}">
        <Setter Property="Width" Value="150"/>
        <Setter Property="Height" Value="{Binding Width, RelativeSource={RelativeSource Self}, Converter={LinearTransformConverter Scale=3}}"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Preset" Value="{Roundtangle AlphaMode=Additive, Softness=75}"/>
        <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
        <Setter Property="Opacity" Value="0.75"/>
        <Setter Property="RenderTransform">
            <Setter.Value>
                <TransformGroup>
                    <StaticResourceExtension ResourceKey="H_Transform_PostRaceStraighten"/>
                    <RotateTransform Angle="-35"/>
                    <TranslateTransform X="1920"/>
                </TransformGroup>
            </Setter.Value>
        </Setter>
    </Style>

    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_GlowFadeInDelay">0:0:0.0</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_GlowFadeInDuration">0:0:0.2</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_GlowFadeOutDelay">0:0:0.0</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_GlowFadeOutDuration">0:0:0.3</TimeSpan>

    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeInDelay">0:0:0.0</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeInDuration">0:0:0.2</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeOutDelay">0:0:1.4</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeOutDuration">0:0:0.5</TimeSpan>

    <Double x:Key="H_Double_PostRace_SharedBar_RewardTextSlideDistance">352</Double>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardTextSlideInDelay">0:0:0.2</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardTextSlideInDuration">0:0:0.25</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardTextSlideOutDelay">0:0:1.15</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_RewardTextSlideOutDuration">0:0:0.5</TimeSpan>

    <Double x:Key="H_Double_PostRace_SharedBar_SheenSlideStart">-310</Double>
    <Double x:Key="H_Double_PostRace_SharedBar_SheenSlideEnd">310</Double>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_SheenSlideDelay">0:0:0.6</TimeSpan>
    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_SheenSlideDuration">0:0:0.6</TimeSpan>

    <TimeSpan x:Key="H_TimeSpan_PostRace_SharedBar_EndDelay">0:0:0.25</TimeSpan>

    <KeyTime x:Key="H_KeyTime_PostRace_SharedBar_Begin">0:0:0.0</KeyTime>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_GlowFadeInBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_Begin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_GlowFadeInDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_GlowFadeInEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeInBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_GlowFadeInDuration}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_GlowFadeOutBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeInEnd}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_GlowFadeOutDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_GlowFadeOutEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeOutBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_GlowFadeOutDuration}"/>

    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_Begin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeInDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeInDuration}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInEnd}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeOutDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardBackgroundFadeOutDuration}"/>

    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardTextSlideInBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_Begin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardTextSlideInDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardTextSlideInEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardTextSlideInDuration}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardTextSlideOutBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInEnd}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardTextSlideOutDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_RewardTextSlideOutEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideOutBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_RewardTextSlideOutDuration}"/>

    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_SheenSlideBegin"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_Begin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_SheenSlideDelay}"/>
    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_SheenSlideEnd"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_SheenSlideBegin}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_SheenSlideDuration}"/>

    <OffsetKeyTime x:Key="H_KeyTime_PostRace_SharedBar_End"
                   KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutEnd}"
                   Offset="{StaticResource H_TimeSpan_PostRace_SharedBar_EndDelay}"/>

    <DoubleAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_GlowContainer_Opacity"
                                   Storyboard.TargetName="GlowContainer"
                                   Storyboard.TargetProperty="Opacity"
                                   FillBehavior="Stop">
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeInBegin}" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeInEnd}" Value="1" EasingFunction="{QuadraticEasing EasingMode=EaseOut}" />
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeOutBegin}" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeOutEnd}" Value="0" EasingFunction="{QuadraticEasing EasingMode=EaseOut}" />
    </DoubleAnimationUsingKeyFrames>

    <ColorAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_SoftGlow_Color"
                                  Storyboard.TargetName="GlowContainer"
                                  Storyboard.TargetProperty="Content"
                                  FillBehavior="Stop">
        <LinearColorKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInEnd}" Value="{StaticResource H_Color_Primary_Yellow}" />
        <DiscreteColorKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_GlowFadeOutEnd}" Value="{StaticResource H_Color_Primary_Yellow}" />
    </ColorAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_Sheen_TranslateX_Slide"
                                   Storyboard.TargetName="Sheen"
                                   Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(TranslateTransform.X)"
                                   FillBehavior="Stop">
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_SheenSlideBegin}" Value="{StaticResource H_Double_PostRace_SharedBar_SheenSlideStart}"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_SheenSlideEnd}" Value="{StaticResource H_Double_PostRace_SharedBar_SheenSlideEnd}" EasingFunction="{QuadraticEasing EasingMode=EaseIn}"/>
    </DoubleAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_RewardBackground_Opacity"
                                   Storyboard.TargetName="RewardBackground"
                                   Storyboard.TargetProperty="Opacity">
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInBegin}" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeInEnd}" Value="1"/>
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutBegin}" Value="1"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardBackgroundFadeOutEnd}" Value="0"/>
    </DoubleAnimationUsingKeyFrames>

    <DoubleAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_RewardText_TranslateX"
                                   Storyboard.TargetName="RewardText"
                                   Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"
                                   FillBehavior="Stop">
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInBegin}" Value="{StaticResource H_Double_PostRace_SharedBar_RewardTextSlideDistance}"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInEnd}" Value="0" EasingFunction="{QuadraticEasing EasingMode=EaseOut}"/>
        <DiscreteDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideOutBegin}" Value="0"/>
        <EasingDoubleKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideOutEnd}" Value="{StaticResource H_Double_PostRace_SharedBar_RewardTextSlideDistance}" EasingFunction="{QuadraticEasing EasingMode=EaseIn}"/>
    </DoubleAnimationUsingKeyFrames>

    <ObjectAnimationUsingKeyFrames x:Key="H_PostRace_SharedBar_RewardText_MotionBlur"
                                   Storyboard.TargetName="RewardText"
                                   Storyboard.TargetProperty="Effect"
                                   FillBehavior="Stop">
        <DiscreteObjectKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInBegin}" Value="{StaticResource A_MotionBlurEffect}"/>
        <DiscreteObjectKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideInEnd}" Value="{StaticResource A_MotionBlurEffect}"/>
        <DiscreteObjectKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideOutBegin}" Value="{StaticResource A_MotionBlurEffect}"/>
        <DiscreteObjectKeyFrame KeyTime="{StaticResource H_KeyTime_PostRace_SharedBar_RewardTextSlideOutEnd}" Value="{StaticResource A_MotionBlurEffect}"/>
    </ObjectAnimationUsingKeyFrames>



    <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_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>


    <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_TotalValueBlock" TargetType="Control" BasedOn="{StaticResource A_Style_Control_PostRace_TotalLabelBlock}">
        <Setter Property="local:BindingProxy.A" Value="{Binding TotalReward.TargetTickerValue, Converter={NumUnitConverter FractionDigits=0}}" />
        <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_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>

    <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_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>



    <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"/>



    <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>

    <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: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>

    
    <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="PART_EventFire"
                                EventName="ShowTotal"
                                local:TriggerAnimation.KeyTime="0:0:0.0" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBalance"
                                local:TriggerAnimation.KeyTime="0:0:0.0" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="StartTotalTicker"
                                local:TriggerAnimation.KeyTime="0:0:0.5" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="Complete"
                                local:TriggerAnimation.KeyTime="0:0:2.0" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="AutoContinue"
                                local:TriggerAnimation.KeyTime="0:0:2.5" />
        </local:UIStoryboard.TriggerAnimation>
    </local:UIStoryboard>

    <local:UIStoryboard x:Key="PART_A_Storyboard_PostRace_Show_1Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_2Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_3Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_4Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_5Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_6Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_7Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem6"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem6}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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="PART_A_Storyboard_PostRace_Show_8Bonus">
        <local:UIStoryboard.TriggerAnimation>
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem1"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem1}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem2"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem2}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem3"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem3}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem4"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem4}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem5"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem5}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem6"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem6}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_EventFire"
                                EventName="ShowBonusItem7"
                                local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_BonusItem7}" />
            <local:RaiseFzEvent Storyboard.TargetName="PART_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>

    <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>
</ResourceDictionary>
