<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:ForzaUI" 
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d"
    x:Class="ForzaUI.HUDAnnaControl"
    x:Name="UserControl"
    HorizontalAlignment="Left"
    VerticalAlignment="Bottom"
    Margin="-5,0,0,0"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <System:Double x:Key="A_Double_StatusContainer_Height">37</System:Double>
            <System:Double x:Key="A_Double_StatusContainer_Height_Cutout">39.5</System:Double>
            <System:Double x:Key="A_Double_StatusContainer_MaxWidth">200</System:Double>
            <System:Double x:Key="A_Double_Map_Width">300</System:Double>
            <System:Double x:Key="A_Double_Map_Height">300</System:Double>
            <System:Double x:Key="A_Double_HistoryItem_FontSize">22</System:Double>

            <System:Double x:Key="PART_A_Double_HistoryItem_Height">23</System:Double>
            <System:Double x:Key="PART_A_Double_HistoryItem_Radius">154</System:Double>

            <local:LinearTransformConverter x:Key="A_Converter_TotalMaxHistoryItemHeight"
                Scale="{StaticResource PART_A_Double_HistoryItem_Height}"/>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_Any">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Any.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_1of1">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_1of1.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_1of2">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_1of2.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_2of2">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_2of2.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_1of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_1of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_2of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_2of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_3of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_3of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_1of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_1of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_2of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_2of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_3of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_3of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Outline_4of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_4of4.png</ImageSource>

            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_Any">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_Any.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_1of1">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_1of1.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_1of2">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_1of2.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_2of2">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_2of2.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_1of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_1of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_2of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_2of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_3of3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_3of3.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_1of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_1of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_2of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_2of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_3of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_3of4.png</ImageSource>
            <ImageSource x:Key="PART_BitmapImage_CommandItem_Mask_4of4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Mask_4of4.png</ImageSource>

            <ImageSource x:Key="A_BitmapImage_CommandTitle_Mask_1">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Title_1_Item.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_CommandTitle_Mask_2">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Title_2_Items.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_CommandTitle_Mask_3">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Title_3_Items.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_CommandTitle_Mask_4">/ForzaUI;component/Textures/Anthem/HUD/ANNA/List_Item_Title_4_Items.png</ImageSource>

            <local:MappingConverter x:Key="A_Converter_ItemsCountToCommandTitleMaskImageSource" Default="{StaticResource PART_BitmapImage_CommandItem_Mask_Any}">
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_BitmapImage_CommandTitle_Mask_1}"/>
                <local:MappingConverterEntry Key="2" Value="{StaticResource A_BitmapImage_CommandTitle_Mask_2}"/>
                <local:MappingConverterEntry Key="3" Value="{StaticResource A_BitmapImage_CommandTitle_Mask_3}"/>
                <local:MappingConverterEntry Key="4" Value="{StaticResource A_BitmapImage_CommandTitle_Mask_4}"/>
            </local:MappingConverter>

            <Color x:Key="A_Color_Minimap_Background">#26FFFFFF</Color>
            <Color x:Key="A_Color_Minimap_Glow">#FFFFFFFF</Color>
            <Color x:Key="A_Color_Minimap_Glow_FadeOut">#80FFFFFF</Color>
            <Color x:Key="A_Color_Communication_SelectedText">#FF58595B</Color>
            <Color x:Key="A_Color_Status_Text">#E6FFFFFF</Color>
            <Color x:Key="A_Color_Status_Text_Faded">#80A6A8AB</Color>
            <Color x:Key="A_Color_Destination_Text">#CDFFFFFF</Color>

            <Duration x:Key="A_Duration_Destination_FadeIn">0:0:1.0</Duration>
            <Duration x:Key="A_Duration_Destination_FadeOut">0:0:1.0</Duration>
            <Duration x:Key="A_Duration_MiniMap_GlowReveal">0:0:0.75</Duration>
            <Duration x:Key="A_Duration_MiniMap_GlowHide">0:0:1.0</Duration>
            <Duration x:Key="A_Duration_Options_FadeIn">0:0:0.5</Duration>
            <Duration x:Key="A_Duration_Options_Selected">0:0:0.25</Duration>


            <local:UIStoryboard x:Key="A_Storyboard_MiniMapBackground_DestinationCutout_FadeIn"
                DurationOverride="{StaticResource A_Duration_Destination_FadeIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MiniMapBackground_DestinationCutout_FadeOut"
                DurationOverride="{StaticResource A_Duration_Destination_FadeOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_DestinationContents_FadeIn"
                DurationOverride="{StaticResource A_Duration_Destination_FadeIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}"
                    BeginTime="0:0:0.4">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_DestinationContents_FadeOut"
                DurationOverride="{StaticResource A_Duration_Destination_FadeOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.0" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="{x:Null}">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Visible}"/>
                </ObjectAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapGlowContainer_FadeIn"
                DurationOverride="{StaticResource A_Duration_Destination_FadeIn}">
                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(local:FZMaterial.Preset).(GradientColorB)" Storyboard.TargetName="{x:Null}">
                    <EasingColorKeyFrame KeyTime="0:0:1.0"
                        Value="{StaticResource A_Color_Minimap_Glow}"
                        EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}"/>
                </ColorAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapGlowContainer_FadeOut"
                DurationOverride="{StaticResource A_Duration_Destination_FadeOut}">
                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(local:FZMaterial.Preset).(GradientColorB)" Storyboard.TargetName="{x:Null}">
                    <EasingColorKeyFrame KeyTime="0:0:1.0"
                        Value="{StaticResource A_Color_Minimap_Glow_FadeOut}"
                        EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </ColorAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <Storyboard x:Key="A_Storyboard_PlaySleepSoundAndMinimize">
                <StringAnimationUsingKeyFrames Storyboard.TargetName="AnnaSleep" Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
                    <DiscreteStringKeyFrame KeyTime="0:0:0.0" Value="" />
                    <DiscreteStringKeyFrame KeyTime="0:0:0.05" Value="/Master/UI/ANNA/HZ3_SFX_HUD_ANNA_Sleep_01" />
                </StringAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="A_Storyboard_PlayWakeSoundAndShowFull">
                <StringAnimationUsingKeyFrames Storyboard.TargetName="AnnaWake" Storyboard.TargetProperty="(local:AudioEvent.SoundName)">
                    <DiscreteStringKeyFrame KeyTime="0:0:0.0" Value="" />
                    <DiscreteStringKeyFrame KeyTime="0:0:0.01" Value="AudioUITrigger_ChatWake" />
                </StringAnimationUsingKeyFrames>
            </Storyboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapBackgroundClip_GlowHide"
                DurationOverride="{StaticResource A_Duration_MiniMap_GlowHide}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapGlowClip_GlowHide"
                DurationOverride="{StaticResource A_Duration_MiniMap_GlowHide}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapBackgroundClip_GlowReveal"
                DurationOverride="{StaticResource A_Duration_MiniMap_GlowReveal}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapGlowClip_GlowReveal"
                DurationOverride="{StaticResource A_Duration_MiniMap_GlowReveal}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_Options_FadeIn" DurationOverride="{StaticResource A_Duration_Options_FadeIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_Options_FadeOut">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_QuickChatHistoryItem_Show"
                DurationOverride="0:0:0.33"
                BeginTime="0:0:0.26">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                    Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1.0" EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_SpeechItem_Selected"
                DurationOverride="{StaticResource A_Duration_Options_Selected}">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.0"
                        EventName="SelectComplete"/>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                        EventName="/Master/UI/ANNA/HZ3_SFX_HUD_ANNA_Select_01"/>
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_QuickChatItem_Selected"
                DurationOverride="{StaticResource A_Duration_Options_Selected}">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.0"
                        EventName="SelectComplete"/>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                        EventName="AudioUITrigger_ChatMessageSend"/>
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_QuickChatHistoryItem_Hide"
                DurationOverride="0:0:0.16">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.0"
                        EventName="HistoryItemHideComplete"/>
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                    Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_QuickChatHistoryItem_Move"
                DurationOverride="0:0:0.3">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.0"
                        EventName="HistoryItemMoveComplete"/>
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.DataContext).(RelativeYOffset)"
                    Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="{StaticResource PART_A_Double_HistoryItem_Height}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0" 
                        EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <ImageBrush x:Key="A_Brush_MapOpacity" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask.png"/>
            <ImageBrush x:Key="A_Brush_MapOpacity_WithDestination" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask_WithDestination.png"/>
            <ImageBrush x:Key="A_Brush_MapOpacity_MapOnly" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask_MapOnly.png"/>
            <ImageBrush x:Key="A_Brush_MapOpacity_MapOnlyWithDestination" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask_MapOnly_WithDestination.png"/>

            <Style x:Key="A_Style_FZMaterial_MapOpacity" TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Color" Value="#00000000"/>
                <Setter Property="OpacityMask" Value="{StaticResource A_Brush_MapOpacity}"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="OpacityMask" Value="{StaticResource A_Brush_MapOpacity_WithDestination}"/>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="False"/>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="OpacityMask" Value="{StaticResource A_Brush_MapOpacity_MapOnly}"/>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="False"/>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="False"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="OpacityMask" Value="{StaticResource A_Brush_MapOpacity_MapOnlyWithDestination}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_MiniMapAnchoredItems" TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Color" Value="#00000000"/>
                <Setter Property="local:BindingProxy.A" Value="1.0"/>
                <Setter Property="local:BindingProxy.B" Value="-0.55"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:BindingProxy.A" Value="0.55"/>
                        <Setter Property="local:BindingProxy.B" Value="-0.55"/>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="False"/>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:BindingProxy.A" Value="1.0"/>
                        <Setter Property="local:BindingProxy.B" Value="-1.0"/>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="False"/>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="False"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:BindingProxy.A" Value="0.55"/>
                        <Setter Property="local:BindingProxy.B" Value="-1.0"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <!-- pgPaulP - value converters to set the render tranform tranlation based on an angle in degrees. -->
            <local:AnglePositionConverter x:Key="A_AnglePositionConverter_NorthX" Cosine="False" ResultScale="-125" />
            <local:AnglePositionConverter x:Key="A_AnglePositionConverter_NorthY" Cosine="True" ResultScale="-92" />

            <Style x:Key="A_Style_FZMaterial_MiniMapOutline"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="ImageSource" Value="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Mini-Map_Border_Full.png"/>
                <Setter Property="Color" Value="White"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_MiniMapDestinationCutout"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Cutout}"/>
                <Setter Property="Width" Value="139"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="Height" Value="150"/>
                <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
                <Setter Property="RenderTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleX="0"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MiniMapBackground_DestinationCutout_FadeIn}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MiniMapBackground_DestinationCutout_FadeOut}"/>
                        </MultiDataTrigger.ExitActions>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_MiniMapStatusContainerCutout"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Height" Value="{StaticResource A_Double_StatusContainer_Height_Cutout}"/>
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_Cutout}"/>
                <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsAnnaVisible}"  Value="True">
                        <Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsQuickChatVisible}"  Value="True">
                        <Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_StatusContainer_Shared"
                TargetType="{x:Type FrameworkElement}">
                <Setter Property="MaxWidth" Value="{StaticResource A_Double_StatusContainer_MaxWidth}"/>
                <Setter Property="MinWidth" Value="98"/>
                <Setter Property="Height" Value="{StaticResource A_Double_StatusContainer_Height}"/>
                <Setter Property="Margin" Value="2,0"/>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_StatusContainer_Anna"
                TargetType="{x:Type FrameworkElement}"
                BasedOn="{StaticResource A_Style_FrameworkElement_StatusContainer_Shared}">
                <Setter Property="Visibility" Value="{Binding IsAnnaVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsQuickChatVisible}" Value="False">
                        <Setter Property="Width" Value="{StaticResource A_Double_StatusContainer_MaxWidth}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_StatusContainer_QuickChat"
                TargetType="{x:Type FrameworkElement}"
                BasedOn="{StaticResource A_Style_FrameworkElement_StatusContainer_Shared}">
                <Setter Property="Visibility" Value="{Binding IsQuickChatVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsAnnaVisible}" Value="False">
                        <Setter Property="MinWidth" Value="{StaticResource A_Double_StatusContainer_MaxWidth}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_Status"
                TargetType="{x:Type local:ControllerButtonControl}"
                BasedOn="{StaticResource A_Style_ControllerButtonControl_Default_ShowAlways}">
                <Setter Property="HideBackground" Value="True"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                        <Setter Property="Desaturate" Value="True"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}" Value="False">
                        <Setter Property="Margin" Value="-4.5,0"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_Status_QuickChat"
                TargetType="{x:Type local:ControllerButtonControl}"
                BasedOn="{StaticResource A_Style_ControllerButtonControl_Status}">
                <Setter Property="Visibility" Value="{Binding ChatCooldown, Converter={StaticResource A_StringVisConverter_UseHidden_Inverse}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsQuickChatAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_Status_Anna"
                TargetType="{x:Type local:ControllerButtonControl}"
                BasedOn="{StaticResource A_Style_ControllerButtonControl_Status}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsAnnaAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_StatusStroke"
                BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll}"
                Thickness="2"/>

            <Style x:Key="A_Style_FZMaterial_StatusStroke_Shared"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangleStroke_StatusStroke}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Minimap_Background}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_StatusStroke_Anna"
                TargetType="{x:Type local:FZMaterial}"
                BasedOn="{StaticResource A_Style_FZMaterial_StatusStroke_Shared}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsAnnaAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CommandsSource}" Value="{x:Static local:CommunicationCommandSource.ANNA}"/>
                            <Condition Binding="{Binding HasPage}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_Anna_Activated}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_StatusStroke_QuickChat"
                TargetType="{x:Type local:FZMaterial}"
                BasedOn="{StaticResource A_Style_FZMaterial_StatusStroke_Shared}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CommandsSource}" Value="{x:Static local:CommunicationCommandSource.QuickChat}"/>
                            <Condition Binding="{Binding HasPage}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding IsQuickChatAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <DropShadowEffect x:Key="A_DropShadowEffect_StatusHud" Color="{StaticResource A_Color_DropShadow}" BlurRadius="0" ShadowDepth="2.0"/>

            <Style x:Key="A_Style_FZTextBlock_StatusBase"
                TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_HorizonC}">
                <Setter Property="CapHeight" Value="12"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Status_Text}"/>
                <Setter Property="Width" Value="51"/>
                <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_StatusHud}" />
            </Style>

            <Style x:Key="A_Style_FZTextBlock_QuickChat"
                TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_StatusBase}">
                <Setter Property="Text" Value="{local:Loc InGame.IDS_CHAT}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CommandsSource}" Value="{x:Static local:CommunicationCommandSource.QuickChat}"/>
                            <Condition Binding="{Binding HasPage}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text}"/>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsQuickChatAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_ANNA"
                TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_StatusBase}">
                <Setter Property="Text" Value="{local:Loc InGame.IDS_ANNA}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CommandsSource}" Value="{x:Static local:CommunicationCommandSource.ANNA}"/>
                            <Condition Binding="{Binding HasPage}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text}"/>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource Self}}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsAnnaAvailable}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_StackPanel_Destination" TargetType="{x:Type StackPanel}">
                <Setter Property="Visibility" Value="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}"/>
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="MinHeight" Value="32"/>
                <Setter Property="Orientation" Value="Horizontal"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,2,0,0"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_DestinationContents_FadeIn}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_DestinationContents_FadeOut}"/>
                        </MultiDataTrigger.ExitActions>
                        <Setter Property="Visibility" Value="{x:Static Visibility.Visible}"/>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="False">
                        <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <local:FZMaterialUVMap x:Key="A_FZMaterialUVMap_CommandItem" StretchRegion="73,0,9,0" UnstretchedSize="82,41"/>

            <local:FZMaterialPresetGlass x:Key="A_FZMaterialPresetGlass_CommandItemBackground"
                BlurAmount="Medium"/>
            <local:MappingConverter x:Key="A_Converter_ANNA_MenuColour">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.ANNA}" Value="{StaticResource A_Color_Anna_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.QuickChat}" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.PlayerInteraction}" Value="{StaticResource A_Color_Interaction_Activated}"/>
            </local:MappingConverter>

            <Style x:Key="A_Style_FZMaterial_CommandItem_Background"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetGlass_CommandItemBackground}"/>
                <Setter Property="Color" Value="{StaticResource A_Color_GlassPanel_Untinted}"/>
                <Setter Property="ImageSource" Value="{Binding MaskImageSource}"/>
                <Setter Property="UVMap" Value="{StaticResource A_FZMaterialUVMap_CommandItem}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSelected}" Value="True">
                        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"/>
                        <Setter Property="Color" Value="{Binding Source, Converter={StaticResource A_Converter_ANNA_MenuColour}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_CommandTitle_Background"
                TargetType="{x:Type local:FZMaterial}"
                BasedOn="{StaticResource A_Style_FZMaterial_CommandItem_Background}">
                <Setter Property="ImageSource" Value="{Binding Items.Count, RelativeSource={RelativeSource AncestorType=local:CommonListBox}, Converter={StaticResource A_Converter_ItemsCountToCommandTitleMaskImageSource}, FallbackValue={StaticResource PART_BitmapImage_CommandItem_Mask_Any}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding DataContext.IsMapVisible, RelativeSource={RelativeSource AncestorType=local:CommonListBox}}" Value="{StaticResource A_Boolean_False}">
                        <Setter Property="ImageSource" Value="{StaticResource PART_BitmapImage_CommandItem_Mask_Any}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_CommandItem_Outline"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="ImageSource" Value="{Binding OutlineImageSource}"/>
                <Setter Property="UVMap" Value="{StaticResource A_FZMaterialUVMap_CommandItem}"/>
                <Setter Property="Color" Value="{Binding Source, Converter={StaticResource A_Converter_ANNA_MenuColour}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSelected}" Value="True">
                        <Setter Property="Visibility" Value="{x:Static Visibility.Collapsed}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_CommandItem"
                TargetType="{x:Type FrameworkElement}">
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="73,0,11,0"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding DataContext.OptionsList.Count, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:HUDAnnaControl}}, Converter={StaticResource A_CompareConverter}, ConverterParameter=4}" Value="1">
                        <Setter Property="Margin" Value="13,0,11,0"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding DataContext.IsMapVisible, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:HUDAnnaControl}}}" Value="False">
                        <Setter Property="Margin" Value="13,0,11,0"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_CommandOptions"
                TargetType="{x:Type FrameworkElement}">
                <Setter Property="MaxWidth" Value="{StaticResource A_Double_Map_Width}"/>
            </Style>

            <Style x:Key="A_Style_StackPanel_CommandOptions"
                TargetType="{x:Type StackPanel}">
                <Setter Property="Orientation" Value="Vertical"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="Margin" Value="-65,0,0,0"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsMapVisible}" Value="False">
                        <Setter Property="HorizontalAlignment" Value="Center"/>
                        <Setter Property="VerticalAlignment" Value="Bottom"/>
                        <Setter Property="Margin" Value="0,0,0,0"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Options_FadeIn}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Options_FadeOut}"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_StackPanel_HistoryItems"
                TargetType="{x:Type StackPanel}">
                <Setter Property="Orientation" Value="Vertical"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Left"/>
                <Setter Property="Opacity" Value="0"/>
                <Setter Property="Margin" Value="3,0,0,0"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsMapVisible}" Value="False">
                        <Setter Property="Margin" Value="51,0,0,47"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding HasPage}" Value="False">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Options_FadeIn}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_Options_FadeOut}"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_CommandItemText"
                TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}">
                <Setter Property="FontSize" Value="24"/>
                <Setter Property="TextAlignment" Value="Right"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="TextWrapping" Value="NoWrap"/>
                <Setter Property="Stretch" Value="Uniform"/>
                <Setter Property="StretchDirection" Value="DownOnly"/>
                <Setter Property="Effect" Value="{x:Null}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSelected}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_SelectedText}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_CommandItem"
                TargetType="{x:Type local:ControllerButtonControl}"
                BasedOn="{StaticResource A_Style_ControllerButtonControl_Default}">
                <Setter Property="HideBackground" Value="True"/>
                <Setter Property="HideShadow" Value="True"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSelected}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_SelectedText}"/>
                        <Setter Property="Desaturate" Value="True"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_CommonListBox_OptionsList"
                   TargetType="local:CommonListBox"
                   BasedOn="{x:Null}">
                <Setter Property="local:ScreenReader.Event" Value="OnChange"/>
                <Setter Property="local:ScreenReader.LineType" Value="ANNAInputOptions"/>
                <Setter Property="local:MultiStringFormatter.Format" Value=""/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding OptionsList.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=0}" Value="1">
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_QuickChatOptionsList_Format_1}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding OptionsList.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=1}" Value="1">
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_QuickChatOptionsList_Format_2}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding OptionsList.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=2}" Value="1">
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_QuickChatOptionsList_Format_3}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding OptionsList.Count, Converter={StaticResource A_CompareConverter}, ConverterParameter=3}" Value="1">
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_QuickChatOptionsList_Format_4}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <Setter Property="local:ScreenReader.Line" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <local:MappingConverter x:Key="A_Converter_ItemIndexToMultiStringFormatterParam" Default="">
                <local:MappingConverterEntry Key="0" Value="Param0"/>
                <local:MappingConverterEntry Key="1" Value="Param1"/>
                <local:MappingConverterEntry Key="2" Value="Param2"/>
                <local:MappingConverterEntry Key="3" Value="Param3"/>
            </local:MappingConverter>

            <!-- pgPaulP - Data template for the speech items in the anna popup -->
            <DataTemplate x:Key="A_DataTemplate_SpeechItem">
                <Grid x:Name="RootContainer" Height="41" MinWidth="202"
                      local:ScreenReader.LineType="ItemSelectionConfirmed"
                      local:ScreenReader.Event="OnChange">
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_CommandItem_Background}"/>
                    <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_CommandItem_Outline}"/>
                    <DockPanel Style="{StaticResource A_Style_FrameworkElement_CommandItem}"
                               local:MultiStringFormatter.Format="{local:Loc Main.IDS_ScreenReader_QuickChatOption_Format}"
                               local:MultiStringFormatter.Param0="{Binding ScreenReaderName, ElementName=ControllerButton}"
                               local:MultiStringFormatter.Param1="{Binding Command}"
                               local:MultiStringFormatter.Output="{Binding ScreenReaderName, Mode=OneWayToSource}">
                        <local:ControllerButtonControl x:Name="ControllerButton"
                            DockPanel.Dock="Right"
                            Style="{StaticResource A_Style_ControllerButtonControl_CommandItem}"
                            Margin="8,0,0,0"
                            InputOverride="{Binding Input}"
                            SupportsControllerInput="True"
                            Visibility="Visible"
                            VerticalAlignment="Center"/>
                        <local:FZTextBlock Text="{Binding Command}" Style="{StaticResource A_Style_FZTextBlock_CommandItemText}"/>
                    </DockPanel>
                </Grid>
                <DataTemplate.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsSelected}" Value="True"/>
                            <Condition Binding="{Binding Source}" Value="{x:Static local:CommunicationCommandSource.ANNA}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_SpeechItem_Selected}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.Setters>
                            <Setter TargetName="RootContainer" Property="local:ScreenReader.Line" Value="" />
                        </MultiDataTrigger.Setters>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsSelected}" Value="True"/>
                            <Condition Binding="{Binding Source}" Value="{x:Static local:CommunicationCommandSource.QuickChat}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_QuickChatItem_Selected}"/>
                        </MultiDataTrigger.EnterActions>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsSelected}" Value="True"/>
                            <Condition Binding="{Binding Source}" Value="{x:Static local:CommunicationCommandSource.PlayerInteraction}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_SpeechItem_Selected}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.Setters>
                            <Setter TargetName="RootContainer" Property="local:ScreenReader.Line" Value="{Binding Command}" />
                        </MultiDataTrigger.Setters>
                    </MultiDataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>

            <DataTemplate x:Key="A_DataTemplate_HistoryItem">
                <StackPanel Orientation="Horizontal"
                    VerticalAlignment="Center"
                    Height="{StaticResource PART_A_Double_HistoryItem_Height}">
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudMedium}"
                        FontSize="{StaticResource A_Double_HistoryItem_FontSize}"
                        Text="{Binding UserProfile.FormattedGamertag}"/>
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudMedium}"
                        FontSize="{StaticResource A_Double_HistoryItem_FontSize}"
                        Text="{local:Loc Anna.IDS_QuickChatHistory_Separator}"/>
                    <Decorator Width="5"/>
                    <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudMedium}"
                        FontSize="{StaticResource A_Double_HistoryItem_FontSize}"
                        Color="{StaticResource A_Color_QuickChat_Activated}"
                        Text="{Binding Message}"
                        local:MultiStringFormatter.Format="{local:Loc Main.IDS_ScreenReader_Format_QuickChatItem}"
                        local:MultiStringFormatter.Param0="{Binding UserProfile.FormattedGamertag}"
                        local:MultiStringFormatter.Param1="{Binding Message}"
                        local:ScreenReader.Event="{x:Static local:ScreenReaderEvent.OnChange}"
                        local:ScreenReader.LineType="{x:Static local:ScreenReaderLineType.QuickChatItem}"
                        local:ScreenReader.Line="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}" />
                </StackPanel>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding IsActive}" Value="True">
                        <DataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_QuickChatHistoryItem_Show}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_QuickChatHistoryItem_Hide}"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsMoving}" Value="True">
                        <DataTrigger.EnterActions>
                            <local:BeginUIStoryboard x:Name="BeginStoryboard_MoveHistoryItem"
                                Storyboard="{StaticResource A_Storyboard_QuickChatHistoryItem_Move}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <StopStoryboard BeginStoryboardName="BeginStoryboard_MoveHistoryItem"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>

            <Style x:Key="A_Style_FrameworkElement_MapBackgroundClip"
                TargetType="{x:Type FrameworkElement}">
                <Setter Property="Height" Value="{StaticResource A_Double_Map_Width}"/>
                <Setter Property="LayoutTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleY="0"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapBackgroundClip_GlowReveal}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapBackgroundClip_GlowHide}"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_MapGlowClip"
                TargetType="{x:Type FrameworkElement}">
                <Setter Property="Height" Value="{StaticResource A_Double_Map_Width}"/>
                <Setter Property="LayoutTransform">
                    <Setter.Value>
                        <ScaleTransform ScaleY="1"/>
                    </Setter.Value>
                </Setter>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding HasPage}" Value="True">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_GlowReveal}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_GlowHide}"/>
                        </DataTrigger.ExitActions>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_MiniMapBackgroundContainer_Background"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="CaptureSubgraph" Value="True"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Minimap_Background}"/>
            </Style>

            <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_MiniMapGlow"
                GradientColorA="{StaticResource A_Color_Minimap_Glow}"
                GradientColorB="{StaticResource A_Color_Minimap_Glow}"
                GradientAngle="0"/>

            <Style x:Key="A_Style_FZMaterial_MiniMapBackgroundContainer_Glow"
                TargetType="{x:Type local:FZMaterial}">
                <Setter Property="CaptureSubgraph" Value="True"/>
                <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_MiniMapGlow}"/>
                <Setter Property="Color" Value="{Binding CommandsSource, Converter={StaticResource A_Converter_ANNA_MenuColour}}" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowContainer_FadeOut}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowContainer_FadeIn}"/>
                        </MultiDataTrigger.ExitActions>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <System:Double x:Key="A_Double_MiniMap_MinSpeed">2.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MaxSpeed">50.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MinDistance">500.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MaxDistance">700.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MinFOV">55.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MaxFOV">55.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MinElevation">60.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MaxElevation">60.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_PositionInViewportY">-0.3</System:Double>
            <System:Double x:Key="A_Double_MiniMap_PositionInViewportX">0.0</System:Double>
            <System:Double x:Key="A_Double_MiniMap_MaxiumProjectionSize">2400</System:Double>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="ShowMinimized"/>
                <VisualState x:Name="ShowFull"/>
                <VisualState x:Name="Hide">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot" Duration="0:0:1">
                            <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.5" From="ShowFull" To="ShowMinimized" Storyboard="{StaticResource A_Storyboard_PlaySleepSoundAndMinimize}" />
                    <VisualTransition GeneratedDuration="0:0:0.5" From="ShowMinimized" To="ShowFull" Storyboard="{StaticResource A_Storyboard_PlayWakeSoundAndShowFull}" />
                </VisualStateGroup.Transitions>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Grid HorizontalAlignment="Left" VerticalAlignment="Bottom">
            <Decorator Width="{StaticResource A_Double_Map_Width}"
                HorizontalAlignment="Left">
                <StackPanel Orientation="Horizontal"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Bottom">
                    <Grid Style="{StaticResource A_Style_FrameworkElement_StatusContainer_Anna}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_GlassPanel_Pill}"
                            Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"/>
                        <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Margin="8,0">
                            <local:ControllerButtonControl x:Name="ControllerButtonControl_Anna"
                                Style="{StaticResource A_Style_ControllerButtonControl_Status_Anna}"
                                InputOverride="{local:Input Command=INPUTCMD_ANNA_ACTIVATE, Context=INPUTCONTEXT_RACING_UI}"
                                SupportsControllerInput="True" />
                            <Decorator Width="6"/>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_ANNA}"
                                local:BindingProxy.A="{Binding IsValid, ElementName=ControllerButtonControl_Anna}"/>
                        </StackPanel>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_StatusStroke_Anna}"
                            local:BindingProxy.A="{Binding IsValid, ElementName=ControllerButtonControl_Anna}"/>
                    </Grid>

                    <Grid Style="{StaticResource A_Style_FrameworkElement_StatusContainer_QuickChat}">
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_GlassPanel_Pill}"
                            Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"/>
                        <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Margin="8,0">
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_QuickChat}"
                                local:BindingProxy.A="{Binding IsValid, ElementName=ControllerButtonControl_QuickChat}"/>
                            <Decorator Width="6"/>
                            <Grid VerticalAlignment="Center">
                                <local:ControllerButtonControl x:Name="ControllerButtonControl_QuickChat"
                                    Style="{StaticResource A_Style_ControllerButtonControl_Status_QuickChat}"
                                    InputOverride="{local:Input Command=INPUTCMD_QUICKCHAT_ACTIVATE, Context=INPUTCONTEXT_RACING_UI}"
                                    SupportsControllerInput="True" />
                                <Decorator Width="25" Height="25">
                                    <local:FZMaterial Height="32"
                                    Width="32"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Cool_Down_Icon.png"
                                    Visibility="{Binding ChatCooldown, Converter={StaticResource A_StringVisConverter}}">
                                        <local:FZTextBlock Text="{Binding ChatCooldown}"
                                            Style="{StaticResource A_Style_FZTextBlock_HudMedium}"
                                            FontFamily="Horizon_C"
                                            FontSize="18"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Center"/>
                                    </local:FZMaterial>
                                </Decorator>
                            </Grid>
                        </StackPanel>
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_StatusStroke_QuickChat}"
                                local:BindingProxy.A="{Binding IsValid, ElementName=ControllerButtonControl_QuickChat}"/>
                    </Grid>
                </StackPanel>
            </Decorator>

            <StackPanel Orientation="Horizontal">
                <Grid Width="{StaticResource A_Double_Map_Width}"
                    Height="{StaticResource A_Double_Map_Height}"
                    Visibility="{Binding IsMapVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">

                    <Grid>
                        <DockPanel VerticalAlignment="Top" Height="{StaticResource A_Double_Map_Height}">
                            <Decorator DockPanel.Dock="Bottom" Style="{StaticResource A_Style_FrameworkElement_MapBackgroundClip}"/>
                            <Decorator ClipToBounds="True" VerticalAlignment="Top" Height="{StaticResource A_Double_Map_Height}">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapBackgroundContainer_Background}">
                                    <Grid>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapOutline}"/>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapDestinationCutout}"/>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapStatusContainerCutout}"/>
                                    </Grid>
                                </local:FZMaterial>
                            </Decorator>
                        </DockPanel>
                        <DockPanel VerticalAlignment="Top" Height="{StaticResource A_Double_Map_Height}">
                            <Decorator DockPanel.Dock="Top" Style="{StaticResource A_Style_FrameworkElement_MapGlowClip}"/>
                            <Decorator ClipToBounds="True" VerticalAlignment="Bottom" Height="{StaticResource A_Double_Map_Height}">
                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapBackgroundContainer_Glow}">
                                    <Grid>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapOutline}"/>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapDestinationCutout}"/>
                                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapStatusContainerCutout}"/>
                                    </Grid>
                                </local:FZMaterial>
                            </Decorator>
                        </DockPanel>
                    </Grid>

                    <StackPanel Style="{StaticResource A_Style_StackPanel_Destination}" MinHeight="32" Height="Auto" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudMedium}"
                            Text="{Binding DestinationDistance, Converter={StaticResource A_StringToUpper}}"
                            FontSize="30"
                            VerticalAlignment="Center"
                            Color="{StaticResource A_Color_Destination_Text}"/>
                    </StackPanel>

                    <local:FZMaterial CaptureSubgraph="True">
                        <Grid>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MapOpacity}">
                                <Grid>
                                    <local:MapViewControllerTrackingMiniMap x:Name="MiniMapView"
                                                                            IsRotatedToCarHeading="true"
                                                                            MinSpeed="{StaticResource A_Double_MiniMap_MinSpeed}"
                                                                            MaxSpeed="{StaticResource A_Double_MiniMap_MaxSpeed}"
                                                                            MinDistance="{StaticResource A_Double_MiniMap_MinDistance}"
                                                                            MaxDistance="{StaticResource A_Double_MiniMap_MaxDistance}"
                                                                            MinFOV="{StaticResource A_Double_MiniMap_MinFOV}"
                                                                            MaxFOV="{StaticResource A_Double_MiniMap_MaxFOV}"
                                                                            MinElevation="{StaticResource A_Double_MiniMap_MinElevation}"
                                                                            MaxElevation="{StaticResource A_Double_MiniMap_MaxElevation}"
                                                                            PositionInViewportY="{StaticResource A_Double_MiniMap_PositionInViewportY}"
                                                                            PositionInViewportX="{StaticResource A_Double_MiniMap_PositionInViewportX}"
                                                                            MaxiumProjectionSize="{StaticResource A_Double_MiniMap_MaxiumProjectionSize}"
                                                                            ElementToTrack="{Binding ElementToTrack, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:HUDAnnaControl}}}" />
                                    <local:MapCustomRenderElement Alpha="1.0"
                                        MapProfile="hud"
                                        MapId="default"
                                        x:Name="mapCustomRenderElement"
                                        MapView="{Binding ElementName=MiniMapView}" />
                                </Grid>
                            </local:FZMaterial>

                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_MiniMapAnchoredItems}">
                                <Grid>
                                    <local:MapViewControllerTrackingMiniMapAnchoring x:Name="MiniMapAnchoredItemsView"
                                                                                     IsRotatedToCarHeading="true"
                                                                                     MinSpeed="{StaticResource A_Double_MiniMap_MinSpeed}"
                                                                                     MaxSpeed="{StaticResource A_Double_MiniMap_MaxSpeed}"
                                                                                     MinDistance="{StaticResource A_Double_MiniMap_MinDistance}"
                                                                                     MaxDistance="{StaticResource A_Double_MiniMap_MaxDistance}"
                                                                                     MinFOV="{StaticResource A_Double_MiniMap_MinFOV}"
                                                                                     MaxFOV="{StaticResource A_Double_MiniMap_MaxFOV}"
                                                                                     MinElevation="{StaticResource A_Double_MiniMap_MinElevation}"
                                                                                     MaxElevation="{StaticResource A_Double_MiniMap_MaxElevation}"
                                                                                     PositionInViewportY="{StaticResource A_Double_MiniMap_PositionInViewportY}"
                                                                                     PositionInViewportX="{StaticResource A_Double_MiniMap_PositionInViewportX}"
                                                                                     MaxiumProjectionSize="{StaticResource A_Double_MiniMap_MaxiumProjectionSize}"
                                                                                     ViewportAnchorDistance="300.0"
                                                                                     ViewportAnchorRadius="0.80"
                                                                                     ViewportAnchorClippingRadius="0.9"
                                                                                     ViewportExtentBottom="{Binding (local:BindingProxy.B), RelativeSource={RelativeSource AncestorType=local:FZMaterial}}"
                                                                                     ViewportExtentTop="{Binding (local:BindingProxy.A), RelativeSource={RelativeSource AncestorType=local:FZMaterial}}"
                                                                                     ElementToTrack="{Binding ElementToTrack, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:HUDAnnaControl}}}" />
                                    <local:MapCustomRenderElement Alpha="1.0"
                                        MapProfile="hud_anchored_items"
                                        MapId="default"
                                        MapView="{Binding ElementName=MiniMapAnchoredItemsView}"
                                        x:Name="mapCustomRenderElementAnchoredItems" />
                                </Grid>
                            </local:FZMaterial>
                        </Grid>
                    </local:FZMaterial>

                    <local:FZMaterial Width="32" Height="32" VerticalAlignment="Center" HorizontalAlignment="Center" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/NorthIndicator.png" RenderTransformOrigin="0.5,0.5" Margin="0,0,0,0">
                        <local:FZMaterial.RenderTransform>
                            <TranslateTransform X="{Binding NorthAngle, ElementName=MiniMapView, Converter={StaticResource A_AnglePositionConverter_NorthX}}" Y="{Binding NorthAngle, ElementName=MiniMapView, Converter={StaticResource A_AnglePositionConverter_NorthY}}"/>
                        </local:FZMaterial.RenderTransform>
                    </local:FZMaterial>
                </Grid>

                <Grid Width="{StaticResource A_Double_Map_Width}">
                    <StackPanel Style="{StaticResource A_Style_StackPanel_CommandOptions}">
                        <local:CommonListBox ItemsSource="{Binding OptionsList}" ItemTemplate="{StaticResource A_DataTemplate_SpeechItem}" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Margin="0,0,0,0" VerticalAlignment="Center" AlternationCount="10000"
                                             Style="{StaticResource A_Style_CommonListBox_OptionsList}">
                            <local:CommonListBox.Template>
                                <ControlTemplate TargetType="{x:Type local:CommonListBox}">
                                    <StackPanel>
                                        <Grid Height="41" Margin="0,-48,0,0" Visibility="{Binding Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}"
                                            DataContext="{Binding Header}">
                                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_CommandTitle_Background}"/>
                                            <DockPanel Style="{StaticResource A_Style_FrameworkElement_CommandItem}">
                                                <StackPanel Orientation="Horizontal">
                                                    <local:FZTextBlock Text="{Binding CarShortName}" Style="{StaticResource A_Style_FZTextBlock_CommandItemText}"/>
                                                    <Decorator Width="10"/>
                                                    <StackPanel Orientation="Horizontal"
                                                                Margin="0,0,-5,0">
                                                        <Control Style="{StaticResource A_Style_Control_CarClassBadge_Small}"
                                                                 local:BindingProxy.A="{Binding CarPI}"
                                                                 local:BindingProxy.B="{Binding CarClass}"
                                                                 Height="28"/>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DockPanel>
                                        </Grid>
                                        <StackPanel Orientation="Vertical" IsItemsHost="True"/>
                                    </StackPanel>
                                </ControlTemplate>
                            </local:CommonListBox.Template>
                            <local:CommonListBox.ItemContainerStyle>
                                <Style TargetType="{x:Type ListBoxItem}">
                                    <Setter Property="local:AncestorPropertySetter.Type" Value="{x:Type local:CommonListBox}"/>
                                    <Setter Property="local:AncestorPropertySetter.AttachedPropertyType" Value="{x:Type local:MultiStringFormatter}"/>
                                    <Setter Property="local:AncestorPropertySetter.Property" Value="{Binding (ItemsControl.AlternationIndex), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_ItemIndexToMultiStringFormatterParam}}"/>
                                    <Setter Property="local:AncestorPropertySetter.Value" Value="{x:Null}"/>
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                                <ContentPresenter/>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                    <Style.Triggers>
                                        <DataTrigger Binding="{Binding (local:AncestorPropertySetter.Property), RelativeSource={RelativeSource Self}, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}">
                                            <Setter Property="local:AncestorPropertySetter.Value" Value="{Binding ScreenReaderName}"/>
                                        </DataTrigger>
                                    </Style.Triggers>
                                </Style>
                            </local:CommonListBox.ItemContainerStyle>
                        </local:CommonListBox>
                        <Decorator Height="40" Visibility="{Binding IsMapVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                    </StackPanel>
                    <StackPanel Style="{StaticResource A_Style_StackPanel_HistoryItems}"
                        Visibility="{Binding IsQuickChatVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                        <local:CommonListBox ItemsSource="{Binding HistoryList}" ItemTemplate="{StaticResource A_DataTemplate_HistoryItem}" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Margin="0,0,0,0" Style="{x:Null}" VerticalAlignment="Bottom" Height="{Binding MaxHistoryItemCount, Converter={StaticResource A_Converter_TotalMaxHistoryItemHeight}}" MaxHeight="{StaticResource A_Double_Map_Height}">
                            <local:CommonListBox.Template>
                                <ControlTemplate TargetType="{x:Type local:CommonListBox}">
                                    <StackPanel IsItemsHost="True" VerticalAlignment="Bottom"/>
                                </ControlTemplate>
                            </local:CommonListBox.Template>
                            <local:CommonListBox.ItemContainerStyle>
                                <Style TargetType="{x:Type ListBoxItem}">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type ListBoxItem}">
                                                <ContentPresenter Opacity="0">
                                                    <ContentPresenter.RenderTransform>
                                                        <TranslateTransform X="{Binding RelativeXOffset}" Y="{Binding RelativeYOffset}"/>
                                                    </ContentPresenter.RenderTransform>
                                                </ContentPresenter>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </local:CommonListBox.ItemContainerStyle>
                        </local:CommonListBox>
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Grid>

        <local:AudioEvent x:Name="AnnaWake" />
        <local:AudioEvent x:Name="AnnaSleep" />

    </Grid>
</UserControl>
