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

    <SkewTransform x:Key="A_SkewTransform_HUD_Italics" AngleX="-8"/>


    <System:Double x:Key="A_Double_HUDMiniLeaderboard_RowHeight">36</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_RowWidth">300</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_RowWidthWithPlace">300</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_TextWidth">280</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_TextWidthWithPlace">244</System:Double>
    <System:Double x:Key="A_Double_HUDMiniLeaderboard_TextWidthWithPlaceAndIcon">214</System:Double>

    <Style x:Key="A_Style_FZMaterial_GlassHudItem" TargetType="local:FZMaterial">
        <Setter Property="Color" Value="{StaticResource A_Color_HUD_ItemBackground}" />
        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_HudItem}" />
        <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 A_FZMaterialPresetRoundtangle_GradientHighlight_InnerAll}" />
        <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_A"/>
        <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" />
        <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>

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

    <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="12,0" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="Stretch" Value="None" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="HorizontalAlignment" Value="Left" />
    </Style>

    <Style x:Key="A_Style_FZMaterial_HudInstruction_InfoIcon"
        TargetType="{x:Type local:FZMaterial}">
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
        <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>

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

    <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.Input"
                Value="{Binding A, Source={StaticResource A_GlobalStorageValue_SubtitlesHeight}}" />
        <Setter Property="Height"
                Value="{Binding Path=(local:BlendValue.Output), RelativeSource={RelativeSource Self}}" />
    </Style>

</ResourceDictionary>