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


    <System:Double x:Key="A_SkewTransform_HUD_Italics_Angle">-8</System:Double>
    <SkewTransform x:Key="A_SkewTransform_HUD_Italics" AngleX="{StaticResource A_SkewTransform_HUD_Italics_Angle}"/>


    <System:Double x:Key="A_Double_HUDMiniLeaderboard_RowHeight">36</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_PlaceWidth">40</System:Double>

    <Style x:Key="A_Style_FZMaterial_GlassHudItem" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_HUD_ClearItemBackground}" />
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_3px}" />
        <Setter Property="Height" Value="{StaticResource A_Double_HUDMiniLeaderboard_RowHeight}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_DarkGlassHudItem" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_DarkenedBar_Background}" />
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_2px}" />
        <Setter Property="Height" Value="{StaticResource A_Double_HUDMiniLeaderboard_RowHeight}" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_HighlightHudItem" TargetType="local:FZMaterial" BasedOn="{StaticResource A_Style_FZMaterial_FlatPanel_Highlight}">
        <Setter Property="Preset" Value="{StaticResource H_Roundtangle_Outer_3px}" />
        <Setter Property="Height" Value="{StaticResource A_Double_HUDMiniLeaderboard_RowHeight}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HUDBase" TargetType="{x:Type local:FZTextBlock}">
        <Setter Property="FontFamily" Value="Horizon_B_tf"/>
        <Setter Property="FontSize" Value="{StaticResource A_Double_FontSize_Minimum}"/>
        <Setter Property="LineAdjust" Value="{StaticResource A_Double_LineAdjust_HorizonA}"/>
        <Setter Property="Color" Value="{StaticResource A_Color_HUD_Text}" />
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HudVeryLarge" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
        <Setter Property="FontSize" Value="80" />
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudLarge" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
        <Setter Property="FontSize" Value="60" />
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudMediumLarge" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
        <Setter Property="FontSize" Value="35" />
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudMedium" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
        <Setter Property="CapHeight" Value="16" />
    </Style>

    <Style TargetType="{x:Type local:FastTextBlock}"
                   x:Key="A_Style_FastTextBlock_HudMedium">
        <Setter Property="FontFamily"
                        Value="Horizon_A_tf" />
        <Setter Property="FontSize"
                        Value="23" />
        <Setter Property="Margin"
                        Value="0,0,0,-1" />
        <Setter Property="Color"
                        Value="{StaticResource A_Color_HUD_Text}" />
        <Setter Property="Effect"
                        Value="{StaticResource A_DropShadowEffect_DefaultHud}" />
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HudVeryLarge_Tight" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HudVeryLarge}">
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudLarge_Tight" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HudLarge}">
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudMediumLarge_Tight" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HudMediumLarge}">
    </Style>
    <Style x:Key="A_Style_FZTextBlock_HudMedium_Tight" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}">
    </Style>

    <System:Double x:Key="A_Double_HUDProgressItem_Width">310</System:Double>

    <Style x:Key="A_Style_FZTextBlock_HUDProgressItem_Value" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
        <Setter Property="CapHeight" Value="16" />
        <Setter Property="MaxWidth" Value="106" />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="FontFamily" Value="Horizon_A_tf" />
    </Style>

    <AutoScrollSettings x:Key="A_AutoScrollSettings_HUDText"
                        ScrollSeparation="50"
                        InitialPause="0:0:0.5"
                        Speed="40"
                        ScrollOrientation="Horizontal"/>

    <Style x:Key="A_Style_FZTextBlock_HUDProgressItem_Label" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDProgressItem_Value}">
        <Setter Property="MaxWidth" Value="165" />
        <Setter Property="Stretch" Value="None" />
        <Setter Property="AutoScroll.AllowScrolling" Value="True" />
        <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_HUDText}" />
    </Style>

    <Style TargetType="ContentControl"
           x:Key="A_Style_ContentControl_AnimatedTagSlideFromLeft_HUD">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <!-- This grid has an expanded height so that text which leaks outside of a FZTextBlock does not get clipped. -->
                    <Grid ClipToBounds="True"
                          Width="{Binding ActualWidth, ElementName=Content}"
                          HorizontalAlignment="Left"
                          Margin="0,-1000">

                        <Grid.RowDefinitions>
                            <RowDefinition Height="1000"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="1000"/>
                        </Grid.RowDefinitions>

                        <StackPanel Grid.Row="1"
                                    Orientation="Horizontal"
                                    HorizontalAlignment="Right">
                            <ContentPresenter x:Name="Content" />
                            <Grid Width="{Binding ActualWidth, ElementName=Content}">
                                <Grid.LayoutTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
                                        <SkewTransform />
                                        <RotateTransform />
                                        <TranslateTransform />
                                    </TransformGroup>
                                </Grid.LayoutTransform>
                            </Grid>
                        </StackPanel>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Tag">
            <Setter.Value>
                <System:Double>0.0</System:Double>
            </Setter.Value>
        </Setter>
    </Style>

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

    <Style TargetType="{Type Control}"
       x:Key="A_Style_Run_Instruction_ACTIVATE">
        <Setter Property="Margin" Value="2,0"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{Type Control}">
                    <ControllerButtonControl Command="{Binding ActivateCommand}"
                                             Style="{StaticResource A_Style_ControllerButtonControl_ActivationButton}"
                                             Height="{Binding ResizedCapHeight, RelativeSource={RelativeSource AncestorType=FZTextBlock}, Converter={LinearTransformConverter Add=6}}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <MappingConverter x:Key="A_MappingConverter_Instruction">
        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_Run_Instruction_HIGHLIGHT}" />
        <MappingConverterEntry Key="{NoCase ACTIVATE}" Value="{StaticResource A_Style_Run_Instruction_ACTIVATE}" />
    </MappingConverter>

    <System:Double x:Key="A_Double_HudInstruction_MaxWidth">625</System:Double>

    <Style x:Key="A_Style_FZTextBlock_HudInstruction"
        TargetType="{x:Type local:FZTextBlock}"
        BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}">
        <Setter Property="Margin" Value="8,0" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="Stretch" Value="None" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="CapHeight" Value="17" />
        <Setter Property="LineAdjust" Value="-0.6" />
        <Setter Property="FontFamily" Value="Horizon_A_tf"/>
    </Style>

    <Style x:Key="A_Style_FZMaterial_HudInstruction_InfoIcon"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="20"/>
        <Setter Property="Height" Value="20"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/HUD/InfoIconSmall.png"/>
        <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Type}" Value="{x:Static local:InstructionTypes.Wristband}">
                <Setter Property="Width" Value="58" />
                <Setter Property="Height" Value="66" />
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/wristband_objective.png" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <ControlTemplate TargetType="ContentControl"
                     x:Key="A_Template_Control_HudInstruction">
        <DockPanel MaxWidth="{StaticResource A_Double_HudInstruction_MaxWidth}">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HudInstruction_InfoIcon}" VerticalAlignment="Top" DockPanel.Dock="Left"/>
            <StackPanel VerticalAlignment="Center">
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudInstruction}"
                                   MarkupConverter="{StaticResource A_MappingConverter_Instruction}"
                                   Text="{TemplateBinding Content}"/>
                <Decorator Height="9" Visibility="{Binding Tag, Converter={StaticResource A_StringVisConverter}, RelativeSource={RelativeSource TemplatedParent}}" />
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudInstruction}" Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}" />
            </StackPanel>
        </DockPanel>
    </ControlTemplate>

    <Style x:Key="A_Style_FZMaterial_HudNetworkStatus_PoorNetworkIcon"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="29"/>
        <Setter Property="Height" Value="29"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/HUD/Poor_Network_Icon.png"/>
    </Style>

    <Style x:Key="A_Style_FrameworkElement_WaitSpinnerPositioner" TargetType="FrameworkElement">
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Margin" Value="0,0,254,0"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsAnalog}" Value="False">
                <Setter Property="Margin" Value="0,0,360,0" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsSpeedoVisible, RelativeSource={RelativeSource AncestorType=Page}}" Value="False">
                <Setter Property="Margin" Value="0,0,0,0" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:BindingProxy x:Key="A_GlobalStorageValue_NotificationPopupHeight" />

    <local:UIStoryboard x:Key="A_Storyboard_BlendValueNotificationPopupSpaceMaker">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                       FillBehavior="Stop"
                                       Storyboard.TargetProperty="(local:BlendValue.Blend)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.15"
                                  Value="1"
                                  EasingFunction="{local:CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames>
    </local:UIStoryboard>

    <Style x:Key="A_Style_FrameworkElement_NotificationPopupSpaceMaker"
           TargetType="FrameworkElement">
        <Setter Property="local:BlendValue.InputChangedStoryboard"
                Value="{StaticResource A_Storyboard_BlendValueNotificationPopupSpaceMaker}" />
        <Setter Property="local:BlendValue.BlendFromPreviousOutput"
                Value="True" />
        <Setter Property="local:BlendValue.Input"
                Value="{Binding A, Source={StaticResource A_GlobalStorageValue_NotificationPopupHeight}}" />
        <Setter Property="Height"
                Value="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
    </Style>

    <local:BindingProxy x:Key="A_GlobalStorageValue_SubtitlesHeight" />
    <local:BindingProxy x:Key="A_GlobalStorageValue_SubtitlesHeight_BlendValue" />

    <local:UIStoryboard x:Key="A_Storyboard_BlendValueSubtitlesSpaceMaker">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="{x:Null}"
                                       FillBehavior="Stop"
                                       Storyboard.TargetProperty="(local:BlendValue.Blend)">
            <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                    Value="0" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.15"
                                  Value="1"
                                  EasingFunction="{local:CircleEasing EasingMode=EaseOut}" />
        </DoubleAnimationUsingKeyFrames> 
    </local:UIStoryboard>

    <Style x:Key="A_Style_FrameworkElement_SubtitlesSpaceMaker"
           TargetType="FrameworkElement">
        <Setter Property="local:BlendValue.InputChangedStoryboard"
                Value="{StaticResource A_Storyboard_BlendValueSubtitlesSpaceMaker}" />
        <Setter Property="local:BlendValue.BlendFromPreviousOutput"
                Value="True" />
        <Setter Property="local:BlendValue.Input"
                Value="{Binding A, Source={StaticResource A_GlobalStorageValue_SubtitlesHeight}}" />
        <Setter Property="Height"
                Value="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="local:BindingProxy.TunnelIn"
                Value="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
        <Setter Property="local:BindingProxy.TunnelOut"
                Value="{Binding A, Source={StaticResource A_GlobalStorageValue_SubtitlesHeight_BlendValue}, Mode=OneWayToSource}" />
    </Style>

    <Style x:Key="A_Style_FrameworkElement_SubtitlesSpaceMaker_WithMinHeight"
           TargetType="FrameworkElement"
           BasedOn="{StaticResource A_Style_FrameworkElement_SubtitlesSpaceMaker}">
        <Setter Property="local:MaxValue.A"
                Value="{Binding A, Source={StaticResource A_GlobalStorageValue_SubtitlesHeight}}" />
        <Setter Property="local:MaxValue.B"
                Value="{Binding MinHeight, RelativeSource={RelativeSource Self}}" />
        <Setter Property="local:BlendValue.Input"
                Value="{Binding (local:MaxValue.Result), RelativeSource={RelativeSource Self}}" />
    </Style>

    <FZMaterialPresetRoundtangleStroke x:Key="H_TickBox_Box"
                                       Thickness="2"
                                       CornerRadius="3" />

    <FZMaterialPresetRoundtangleStroke x:Key="H_TickBox_Circle"
                                       Thickness="2"
                                       CornerRadius="10" />

    <MappingConverter x:Key="H_Converter_TickBoxPreset_CircleIfTrue"
                      Default="{StaticResource H_TickBox_Box}">
        <MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{StaticResource H_TickBox_Circle}"/>
    </MappingConverter>

    <Style x:Key="A_Style_Material_Tick"
           TargetType="local:FZMaterial">
        <Setter Property="ImageSource" Value="game:/Media/UI/Textures/Data_Bound/HUD/accolades_tick.png" />
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}" />
        <Setter Property="Opacity" Value="0" />
        <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource TemplatedParent}}" Value="green">
                <Setter Property="ImageSource" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/HUD/CareerProgress/green_tick.png" />
                <Setter Property="Color" Value="#FFFFFFFF" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <DataTemplate x:Key="H_Template_TickBox">
        <Grid Width="20"
              Height="20"
              DockPanel.Dock="Left">
            <FZMaterial Preset="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource H_Converter_TickBoxPreset_CircleIfTrue}}" />
            <Grid Margin="0,-10,-10,0">
                <FZMaterial x:Name="tick" 
                            Style="{StaticResource A_Style_Material_Tick}">
                    <FZMaterial.RenderTransform>
                        <ScaleTransform ScaleY="{Binding ScaleX, RelativeSource={RelativeSource Self}}" />
                    </FZMaterial.RenderTransform>
                </FZMaterial>
                <FZMaterial x:Name="tick_ghost" 
                            Style="{StaticResource A_Style_Material_Tick}">
                    <FZMaterial.RenderTransform>
                        <ScaleTransform ScaleY="{Binding ScaleX, RelativeSource={RelativeSource Self}}" />
                    </FZMaterial.RenderTransform>
                </FZMaterial>
            </Grid>
        </Grid>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding}" Value="{StaticResource A_Boolean_True}">
                <DataTrigger.EnterActions>
                    <BeginUIStoryboard Name="on">
                        <UIStoryboard>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="tick"
                                                           Storyboard.TargetProperty="Opacity">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.20"
                                                        Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="tick"
                                                           Storyboard.TargetProperty="RenderTransform.(ScaleTransform.ScaleX)">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.00"
                                                        Value="1.8" />
                                <EasingDoubleKeyFrame KeyTime="0:0:0.20"
                                                        Value="1.8" />
                                <EasingDoubleKeyFrame KeyTime="0:0:0.30"
                                                        Value="1" EasingFunction="{QuarticEasing EasingMode=EaseIn}"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="tick_ghost"
                                                           Storyboard.TargetProperty="Opacity"
                                                           BeginTime="0:0:0.3">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.00"
                                                        Value="1" />
                                <EasingDoubleKeyFrame KeyTime="0:0:0.60"
                                                        Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="tick_ghost"
                                                           Storyboard.TargetProperty="RenderTransform.(ScaleTransform.ScaleX)"
                                                           BeginTime="0:0:0.3">
                                <EasingDoubleKeyFrame KeyTime="0:0:0.00"
                                                        Value="0" />
                                <EasingDoubleKeyFrame KeyTime="0:0:0.60"
                                                        Value="2.5" EasingFunction="{QuadraticEasing EasingMode=EaseOut}" />
                            </DoubleAnimationUsingKeyFrames>
                        </UIStoryboard>
                    </BeginUIStoryboard>
                </DataTrigger.EnterActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding}" Value="{StaticResource A_Boolean_False}">
                <DataTrigger.EnterActions>
                    <StopStoryboard BeginStoryboardName="on"/>
                </DataTrigger.EnterActions>
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

    <FZMaterialPresetRoundtangle x:Key="H_BG_Swoosh"
                                       Softness="75" />

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

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

    <Style x:Key="A_Style_FZTextBlock_HudChallengeText"
        TargetType="{x:Type local:FZTextBlock}"
        BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}">
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="CapHeight" Value="14"/>
        <Setter Property="TextAlignment" Value="Left" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="LineAdjust" Value="-0.4" />
        <Setter Property="Stretch" Value="None" />
        <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_HudChallenge}"/>
    </Style>

    <Style x:Key="A_Style_FZTextBlock_HudChallengeObjectiveDescription"
        TargetType="{x:Type local:FZTextBlock}"
        BasedOn="{StaticResource A_Style_FZTextBlock_HudChallengeText}">
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}" />
    </Style>


    <UIStoryboard x:Key="H_AmbientAccolade_Complete">
        <UIStoryboard.TriggerAnimation>
            <StartAudioTrigger EventName="UI_Accolades_SecondaryComplete" TriggerAnimation.KeyTime="0:0:0"/>
        </UIStoryboard.TriggerAnimation>
        <!--ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.00"
                                    Value="{x:Static Visibility.Visible}" />
        </ObjectAnimationUsingKeyFrames>
        <BooleanAnimationUsingKeyFrames Storyboard.TargetName="root"
                                        Storyboard.TargetProperty="ClipToBounds">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.00"
                                     Value="True" />
        </BooleanAnimationUsingKeyFrames-->
        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="tickbox"
                                       Storyboard.TargetProperty="Content">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.00"
                                    Value="{StaticResource A_Boolean_True}" />
        </ObjectAnimationUsingKeyFrames>
        <!--ObjectAnimationUsingKeyFrames Storyboard.TargetName="root"
                                       Storyboard.TargetProperty="(BindingProxy.A)">
            <DiscreteObjectKeyFrame KeyTime="0:0:0.00"
                                    Value="not_complete" />
            <DiscreteObjectKeyFrame KeyTime="0:0:2.2"
                                    Value="complete" />
        </ObjectAnimationUsingKeyFrames-->
        <ColorAnimationUsingKeyFrames Storyboard.TargetName="points"
                                       Storyboard.TargetProperty="Color"
                                       BeginTime="0:0:0.5">
            <DiscreteColorKeyFrame KeyTime="0:0:0.00"
                                    Value="{StaticResource H_Color_Primary_Yellow}" />
        </ColorAnimationUsingKeyFrames>
        <ColorAnimationUsingKeyFrames Storyboard.TargetName="points_icon"
                                       Storyboard.TargetProperty="Color"
                                       BeginTime="0:0:0.5">
            <DiscreteColorKeyFrame KeyTime="0:0:0.00"
                                    Value="{StaticResource H_Color_Primary_Yellow}" />
        </ColorAnimationUsingKeyFrames>
        <!--DoubleAnimationUsingKeyFrames Storyboard.TargetName="root"
                                       Storyboard.TargetProperty="Height"
                                       BeginTime="0:0:2.2">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="0"
                                  EasingFunction="{QuarticEasing}" />
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="root"
                                        Storyboard.TargetProperty="Opacity"
                                        BeginTime="0:0:2.0">
            <EasingDoubleKeyFrame KeyTime="0:0:0.30"
                                     Value="0" />
        </DoubleAnimationUsingKeyFrames-->


        <!--BooleanAnimationUsingKeyFrames FillBehavior="Stop" Storyboard.TargetName="capturer"
                                       Storyboard.TargetProperty="CaptureSubgraph">
            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                    Value="True" />
            <DiscreteBooleanKeyFrame KeyTime="0:0:2.0"
                                    Value="True" />
        </BooleanAnimationUsingKeyFrames>
        <ColorAnimationUsingKeyFrames FillBehavior="Stop" Storyboard.TargetName="capturer"
                                       Storyboard.TargetProperty="Color">
            <DiscreteColorKeyFrame KeyTime="0:0:0.0"
                                    Value="#ffff" />
            <DiscreteColorKeyFrame KeyTime="0:0:2.0"
                                    Value="#ffff" />
        </ColorAnimationUsingKeyFrames-->
        <PointAnimationUsingKeyFrames Storyboard.TargetName="swoosher"
                                       Storyboard.TargetProperty="RenderTransformOrigin"
                                       BeginTime="0:0:0.3">
            <EasingPointKeyFrame KeyTime="0:0:0.40"
                                    Value="0,0.5"
                                    EasingFunction="{QuadraticEasing EasingMode=EaseOut}" />
        </PointAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="edge_fade"
                                       Storyboard.TargetProperty="Opacity"
                                       BeginTime="0:0:0.4">
            <EasingDoubleKeyFrame KeyTime="0:0:0.2"
                                    Value="0.5" />
        </DoubleAnimationUsingKeyFrames>
    </UIStoryboard>

    <MappingConverter x:Key="A_Converter_Astra_TeamToAccoladeDividerColor">
        <MappingConverterEntry Key="alejandra" Value="{StaticResource A_Color_Astra_Team_Alejandra}" />
        <MappingConverterEntry Key="alex" Value="{StaticResource A_Color_Astra_Team_Alex}" />
        <MappingConverterEntry Key="rami" Value="{StaticResource A_Color_Astra_Team_Rami}" />
    </MappingConverter>

    <Style x:Key="H_Style_AmbientAccoladeDividerMaterial"
           TargetType="FZMaterial">
        <Setter Property="VerticalAlignment" Value="Bottom"/>
        <Setter Property="Color" Value="#FFFFFFFF"/>
        <Setter Property="Height" Value="4"/>
        <Setter Property="Margin" Value="0,0,0,-1"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding ChallengeCategory}" Value="{Static XAMLChallengeCategory.SpectrumMission}">
                <Setter Property="Color" Value="{StaticResource A_Color_HW_Orange}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ChallengeCategory}" Value="{Static XAMLChallengeCategory.AstraChallenge}">
                <Setter Property="Color" Value="{Binding TeamUIReference, Converter={StaticResource A_Converter_Astra_TeamToAccoladeDividerColor}}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter x:Key="A_Converter_Astra_TeamToTitleBackground">
        <MappingConverterEntry Key="alejandra" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/HUD/CareerProgress/team_alejandra.png" />
        <MappingConverterEntry Key="alex" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/HUD/CareerProgress/team_alex.png" />
        <MappingConverterEntry Key="rami" Value="game:/Media/UI/Textures/Data_Bound/PDLC2/HUD/CareerProgress/team_rami.png" />
    </MappingConverter>

    <Style x:Key="H_Style_FZMaterial_ChallengeNotification_Background"
        TargetType="{Type FZMaterial}">
        <Setter Property="Color" Value="#1000"/>
        <Setter Property="Preset" Value="{GlassRoundtangle BlurAmount=Medium, CornerRadius=1}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding ChallengeCategory}" Value="{Static XAMLChallengeCategory.SpectrumMission}">
                <Setter Property="Color" Value="#FFFFFFFF"/>
                <Setter Property="Preset" Value="{Roundtangle CornerRadius=1}"/>
                <Setter Property="ImageSource" Value="game:/Media/UI/Textures/Data_Bound/PDLC1/HUD/CareerProgress/Texture_Background.png"/>
                <Setter Property="Stretch" Value="UniformToFill"/>
                <Setter Property="ClipToBounds" Value="True"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding ChallengeCategory}" Value="{Static XAMLChallengeCategory.AstraChallenge}">
                <Setter Property="Color" Value="#FFFFFFFF"/>
                <Setter Property="Preset" Value="{Roundtangle CornerRadius=1}"/>
                <Setter Property="ImageSource" Value="{Binding TeamUIReference, Converter={StaticResource A_Converter_Astra_TeamToTitleBackground}}"/>
                <Setter Property="Stretch" Value="UniformToFill"/>
                <Setter Property="ClipToBounds" Value="True"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter x:Key="H_Converter_ChallengeCategoryToHUDAmbientAccoladeEdgeFadePreset"
                      Default="{Roundtangle CornerRadius=1, GradientColorA={StaticResource H_Color_Transparent_Yellow}, GradientColorB=#FFffff88, GradientAngle=90}">
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.SpectrumMission}" Value="{Roundtangle CornerRadius=1, GradientColorA=#00FFFFFF, GradientColorB=#FFFFFFFF, GradientAngle=90}"/>
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.AstraChallenge}" Value="{Roundtangle CornerRadius=1, GradientColorA=#00FFFFFF, GradientColorB=#FFFFFFFF, GradientAngle=90}"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_ChallengeCategoryToHUDAmbientAccoladeMinHeight"
                      Default="61">
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.SpectrumMission}" Value="53"/>
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.AstraChallenge}" Value="53"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_TeamToReputationIconPath" Default="">
        <MappingConverterEntry Key="alejandra" Value="game:\Media\UI\Textures\Data_Bound\PDLC2\HUD\CareerProgress\alejandra_reward.png"/>
        <MappingConverterEntry Key="alex" Value="game:\Media\UI\Textures\Data_Bound\PDLC2\HUD\CareerProgress\alex_reward.png"/>
        <MappingConverterEntry Key="rami" Value="game:\Media\UI\Textures\Data_Bound\PDLC2\HUD\CareerProgress\rami_reward.png"/>
    </MappingConverter>

    <MappingConverter x:Key="H_Converter_CollapsedIfMissionOrAstraChallenge" Default="{Static Visibility.Visible}">
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.SpectrumMission}" Value="{Static Visibility.Collapsed}"/>
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.AstraChallenge}" Value="{Static Visibility.Collapsed}"/>
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_ChallengeTypeToTickColor" Default="">
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.AstraChallenge}" Value="green" />
    </MappingConverter>

    <MappingConverter x:Key="A_Converter_InputDeviceTypeToMargin" Default="0">
        <local:MappingConverterEntry Key="{x:Static local:XAMLInputDeviceType.KeyboardAndMouse}" Value="0,0,-32,0" />
    </MappingConverter>

    <DataTemplate x:Key="H_Template_AmbientAccolade">
        <Canvas x:Name="root"
                Height="{Binding ActualHeight, ElementName=innerroot}"
                BindingProxy.A="not_complete">
            <Grid x:Name="innerroot"
                  Width="{TemplateBinding ActualWidth}"
                  VerticalAlignment="Center">
                <Decorator RenderTransformOrigin="0.5,0.5"
                           x:Name="flipper">
                    <Decorator.RenderTransform>
                        <ScaleTransform ScaleY="-1" />
                    </Decorator.RenderTransform>
                    <Decorator x:Name="innerflipper"
                               RenderTransformOrigin="0.5,0.5">
                        <Decorator.RenderTransform>
                            <ScaleTransform ScaleY="-1" />
                        </Decorator.RenderTransform>
                        <Grid MinHeight="{Binding ChallengeCategory, Converter={StaticResource H_Converter_ChallengeCategoryToHUDAmbientAccoladeMinHeight}}" Margin="0,4,0,0">

                            <FZMaterial CaptureSubgraph="False"
                                        Color="#0000"
                                        x:Name="capturer">
                                <Grid ClipToBounds="True">
                                    <FZMaterial Style="{StaticResource H_Style_FZMaterial_ChallengeNotification_Background}"/>
                                    <Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Stretch">
                                        <Grid.RenderTransform>
                                            <ScaleTransform ScaleX="-1"/>
                                        </Grid.RenderTransform>
                                        <Decorator RenderTransformOrigin="1,0.5" x:Name="swoosher" Height="0">
                                            <Decorator.RenderTransform>
                                                <ScaleTransform ScaleX="-1"/>
                                            </Decorator.RenderTransform>
                                            <FZMaterial x:Name="bg_swoosh" Preset="{StaticResource H_BG_Swoosh}" Width="250" Height="500" VerticalAlignment="Center"
                                                Opacity="0.2" HorizontalAlignment="Left"/>
                                        </Decorator>
                                    </Grid>
                                    <FZMaterial x:Name="edge_fade" Preset="{Binding ChallengeCategory, Converter={StaticResource H_Converter_ChallengeCategoryToHUDAmbientAccoladeEdgeFadePreset}}" Width="100" Margin="0,0,-0,0" Opacity="0" HorizontalAlignment="Right"/>
                                </Grid>
                            </FZMaterial>

                            <DockPanel>
                                <Decorator x:Name="ButtonPrompt"
                                           DockPanel.Dock="Right"
                                           MaxWidth="60"
                                           Margin="-27,0,0,0"
                                           HorizontalAlignment="Right"
                                           VerticalAlignment="Center"
                                           Visibility="{Binding DataContext.Activatable, RelativeSource={RelativeSource AncestorType=HUDControl}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                                    <local:ControllerButtonControl x:Name="ButtonControl"
                                                                   Style="{StaticResource A_Style_ControllerButtonControl_ActivationButton}"
                                                                   Visibility="{Binding ShowActivation, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                                                   Command="{Binding ActivateCommand}"
                                                                   InputOverride="{local:Input Command=INPUTCMD_ACTIVATE, Context=INPUTCONTEXT_RACING}"
                                                                   RenderTransformOrigin="0.5,0.5">
                                        <local:ControllerButtonControl.RenderTransform>
                                            <TranslateTransform X="{Binding ActualWidth, RelativeSource={RelativeSource AncestorType=FrameworkElement}, Converter={LinearTransformConverter Scale=0.5}}"/>
                                        </local:ControllerButtonControl.RenderTransform>
                                    </local:ControllerButtonControl>
                                </Decorator>

                                <DockPanel x:Name="AccoladeInfo"
                                           DockPanel.Dock="Left">
                                    <Decorator Width="10" DockPanel.Dock="Left"/>

                                    <ContentPresenter Content="{StaticResource A_Boolean_False}"
                                    	ContentTemplate="{StaticResource H_Template_TickBox}" 
                                        x:Name="tickbox"
                                        local:BindingProxy.A="{Binding DataContext.ChallengeCategory, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_Converter_ChallengeTypeToTickColor}}"/>
                                    <Decorator Width="10" DockPanel.Dock="Left"/>
                                    <DockPanel x:Name="TitleAndAccoladeReward" >
                                        <StackPanel x:Name="AccoladeReward"
                                                    Orientation="Horizontal"
                                                    DockPanel.Dock="Right"
                                                    Visibility="{Binding ChallengeCategory, Converter={StaticResource H_Converter_CollapsedIfMissionOrAstraChallenge}}"
                                                    Margin="{Binding InputDeviceType, ElementName=ButtonControl, Converter={StaticResource A_Converter_InputDeviceTypeToMargin}}">
                                            <Decorator RenderTransform="{StaticResource A_Transform_Italic}" RenderTransformOrigin="0.5,0.5">
                                                <FZTextBlock Text="{Binding Points, Converter={NumUnitConverter FractionDigits=0}}"
                                                    CapHeight="17"
                                                    FontFamily="Horizon_A_tf"
                                                    VerticalAlignment="Center"
                                                    Color="{StaticResource H_Color_Primary_White}"
                                                    Effect="{StaticResource A_DropShadowEffect_DefaultHud}"
                                                    Margin="8,0,-3,0"
                                                    x:Name="points"/>
                                            </Decorator>
                                            <Grid Height="41"
                                                Width="41">
                                                <Grid.Style>
                                                    <Style TargetType="{Type FrameworkElement}">
                                                        <Style.Triggers>
                                                            <DataTrigger Binding="{Binding ShowActivation}" Value="True">
                                                                <Setter Property="Margin" Value="0,0,30,0"/>
                                                            </DataTrigger>
                                                        </Style.Triggers>
                                                    </Style>
                                                </Grid.Style>
                                                <FZMaterial ImageSource="game:\Media\UI\Textures\Data_Bound\PlayerBar\Accolades_Icon.png"
                                                    Color="#44000000"
                                                    Margin="0,0,-2,-2"/>
                                                <FZMaterial ImageSource="game:\Media\UI\Textures\Data_Bound\PlayerBar\Accolades_Icon.png"
                                                    x:Name="points_icon"/>
                                            </Grid>
                                        </StackPanel>
                                        <Decorator x:Name="AccoladeTitle" 
                                                   DockPanel.Dock="Left" 
                                                   RenderTransformOrigin="0.5,0.5"
                                                   RenderTransform="{StaticResource A_Transform_Italic}">
                                        <FZTextBlock Text="{Binding Title, Converter={StringToUpper}}"
                                                     MarkupConverter="{StaticResource A_MappingConverter_HudChallenge}"
                                                        CapHeight="17"
                                                        LineAdjust="-0.5"
                                                        TextWrapping="Wrap"
                                                        FontFamily="Horizon_B_tf"
                                                        VerticalAlignment="Center"
                                                        Color="{StaticResource H_Color_Primary_White}"
                                                        Effect="{StaticResource A_DropShadowEffect_DefaultHud}"
                                                        Margin="0,10" />
                                        </Decorator>
                                    </DockPanel>
                                </DockPanel>
                            </DockPanel>
                            <FZMaterial x:Name="HorizontalDivider"
                                        Style="{StaticResource H_Style_AmbientAccoladeDividerMaterial}"/>

                        </Grid>
                    </Decorator>
                </Decorator>
            </Grid>
            <EventFire.FzTriggers>
                <StopStoryboard BeginStoryboardName="complete_anim"
                    EventFireTrigger.Event="prepare_accolade"/>
                <BeginUIStoryboard Storyboard="{StaticResource H_AmbientAccolade_Complete}"
                    Name="complete_anim"
                    EventFireTrigger.Event="complete_accolade"/>
            </EventFire.FzTriggers>
        </Canvas>
    </DataTemplate>

    <UIStoryboard x:Key="H_AmbientAccolade_Show">
        <UIStoryboard.TriggerAnimation>
            <StartAudioTrigger EventName="UI_Accolades_Appear" TriggerAnimation.KeyTime="0:0:0"/>
        </UIStoryboard.TriggerAnimation>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
            <EasingDoubleKeyFrame KeyTime="0:0:0"
                                  Value="0" />
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="1" />
        </DoubleAnimationUsingKeyFrames>
        <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin">
            <EasingThicknessKeyFrame KeyTime="0:0:0.0"
                                  Value="-40,0,0,0"/>
            <EasingThicknessKeyFrame KeyTime="0:0:0.3"
                                  Value="0" EasingFunction="{QuarticEasing EasingMode=EaseOut}"/>
        </ThicknessAnimationUsingKeyFrames>
    </UIStoryboard>

    <UIStoryboard x:Key="H_AmbientAccolade_Hide">
        <UIStoryboard.TriggerAnimation>
            <StartAudioTrigger EventName="UI_Accolades_Disappear" TriggerAnimation.KeyTime="0:0:0"/>
        </UIStoryboard.TriggerAnimation>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
            <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                  Value="0" />
        </DoubleAnimationUsingKeyFrames>
        <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin">
            <EasingThicknessKeyFrame KeyTime="0:0:0.3"
                                  Value="-40,0,0,0" EasingFunction="{QuarticEasing EasingMode=EaseIn}"/>
        </ThicknessAnimationUsingKeyFrames>
    </UIStoryboard>

    <System:Double x:Key="A_Double_MinorNotification_HeightWithHeader">108</System:Double>
    <System:Double x:Key="A_Double_MinorNotification_HeaderHeight">34</System:Double>
    <System:Double x:Key="A_Double_MinorNotification_SubheaderHeight">4</System:Double>
    <System:Double x:Key="A_Double_MinorNotification_HeaderWithSubheaderHeight">38</System:Double>
    <System:Double x:Key="A_Double_MinorNotification_Height">70</System:Double>
    <System:Double x:Key="A_Double_MinorNotification_CapWidth">4</System:Double>
    <Thickness x:Key="A_Thickness_MinorNotification_ContentsMargin">18,14</Thickness>
    <Style x:Key="A_Style_FZMaterial_MinorNotification_Glass" TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Preset" Value="{GlassRoundtangle BlurAmount=Low}"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Glass_Black_30pc}"/>
    </Style>
    <Style x:Key="A_Style_ControllerButtonControl_MinorNotification_ActivationButton"
           TargetType="{x:Type local:ControllerButtonControl}"
           BasedOn="{StaticResource A_Style_ControllerButtonControl_ActivationButton}">
        <Setter Property="MinHeight" Value="20"/>
        <Setter Property="MinWidth" Value="20"/>
        <Setter Property="Margin" Value="0,0,18,0"/>
        <Setter Property="UseLargeIcon" Value="True"/>
    </Style>
    <Style x:Key="A_Style_FZMaterial_ChallengeNotification_Glass"
        TargetType="{Type FZMaterial}"
        BasedOn="{StaticResource A_Style_FZMaterial_MinorNotification_Glass}">
        <Setter Property="Preset" Value="{StaticResource H_GlassRoundtangle_3px}"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Self}}" Value="{Static XAMLChallengeCategory.SpectrumMission}">
                <Setter Property="Preset" Value="{Roundtangle CornerRadius={StaticResource H_CornerRadius_All_3px}}"/>
                <Setter Property="Color" Value="#FFFFFFFF"/>
                <Setter Property="ImageSource" Value="game:/Media/UI/Textures/Data_Bound/PDLC1/HUD/CareerProgress/Texture_Background.png"/>
                <Setter Property="Stretch" Value="Fill"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <MappingConverter x:Key="A_Converter_ChallengeCategoryToHUDGlassColor" Default="#1000">
        <MappingConverterEntry Key="{Static XAMLChallengeCategory.SpectrumMission}" Value="{StaticResource A_Color_HW_Medium_Blue_6pc}"/>
    </MappingConverter>

    <!--Event Progress Bar Visuals START-->
    <Style x:Key="H_Style_FZMaterial_Event_Hash_Background" TargetType="FZMaterial">
        <Style.Resources>
            <UIStoryboard x:Key="Storyboard_AnimatedHatching" RepeatBehavior="Forever" Duration="1:0:0">
                <DoubleAnimation Storyboard.TargetProperty="(FZMaterial.ImageTransform).(TransformGroup.Children)[0].(TranslateTransform.X)"
                 RepeatBehavior="Forever" 
                 Duration="0:0:20"
                 From="0" To="17"/>
            </UIStoryboard>
        </Style.Resources>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Anthem/Touge/Hash_Pattern.png"/>
        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Black}"/>
        <Setter Property="Opacity" Value="0.2"/>
        <Setter Property="TextureWrap" Value="True"/>
        <Setter Property="ImageTransform">
            <Setter.Value>
                <TransformGroup>
                    <TranslateTransform />
                    <ScaleTransform ScaleX="0.35"
                    ScaleY="1"/>
                </TransformGroup>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <DataTrigger Binding="{Binding Active}" Value="True">
                <DataTrigger.EnterActions>
                    <BeginUIStoryboard x:Name="Storyboard_Hatching"
                        Storyboard="{StaticResource Storyboard_AnimatedHatching}" />
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <StopStoryboard BeginStoryboardName="Storyboard_Hatching" />
                </DataTrigger.ExitActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding InZone}" Value="True">
                <DataTrigger.EnterActions>
                    <ResumeStoryboard BeginStoryboardName="Storyboard_Hatching" />
                </DataTrigger.EnterActions>
                <DataTrigger.ExitActions>
                    <PauseStoryboard BeginStoryboardName="Storyboard_Hatching"/>
                </DataTrigger.ExitActions>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <local:OffsetKeyTime x:Key="A_KeyTime_GlowFade"
         KeyTime="0:0:0.06"
         Offset="0:0:0" />

    <Style x:Key="H_Style_FZMaterial_Event_Zone_Glow" TargetType="FZMaterial">
        <Style.Resources>
            <UIStoryboard x:Key="Show_Glow" FillBehavior="HoldEnd">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_GlowFade}" Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
            <UIStoryboard x:Key="Hide_Glow" FillBehavior="HoldEnd">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity">
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_GlowFade}" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </UIStoryboard>
        </Style.Resources>
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/HUD/Glow.png"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding InZone}" Value="True">
                <DataTrigger.EnterActions>
                    <BeginUIStoryboard Storyboard="{StaticResource Show_Glow}"/>
                </DataTrigger.EnterActions>
            </DataTrigger>
            <DataTrigger Binding="{Binding InZone}" Value="False">
                <DataTrigger.EnterActions>
                    <BeginUIStoryboard Storyboard="{StaticResource Hide_Glow}"/>
                </DataTrigger.EnterActions>
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <!--Event Progress Bar Visuals END-->

    <Style x:Key="A_Style_FZMaterialPresetStencilHighlight_ARUI" TargetType="FZMaterial">
        <Setter Property="ImageSourceNoPreload" Value="/ForzaUI;component/Textures/Data_Bound/PostRace/Stripe_Overlay.png" />
        <Setter Property="TextureWrap" Value="True" />
        <Setter Property="Preset">
            <Setter.Value>
                <!-- Keep in sync with EntityModel::NetworkPropPlacementModuleHelper::SetPropHighlightState -->
                <local:FZMaterialPresetStencilHighlight StencilRef="15" InteriorColor="#3200FF00" EdgeColor="#FF00FF00" StencilRef1="14" InteriorColor1="#32FFF200" EdgeColor1="#FFFFF200" StencilRef2="13" InteriorColor2="#3238AFFF" EdgeColor2="#FF38AFFF" StencilRef3="12" InteriorColor3="#A0FFF200" EdgeColor3="#FFFFF200" />
            </Setter.Value>
        </Setter>
        <Setter Property="ImageTransform">
            <Setter.Value>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.01"
                                            ScaleY="0.01" />
                    <TranslateTransform X="0"
                                                Y="0" />
                </TransformGroup>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>