<UserControl
    DataContext="{Binding (HUDData.Data), RelativeSource={RelativeSource Self}}" 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="-4,0,0,-11"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <System:Double x:Key="A_Double_StatusContainer_Height">37</System:Double>
            <System:Double x:Key="A_Double_StatusContainer_Height_Cutout">42</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_CapHeight">17</System:Double>

            <System:Double x:Key="PART_A_Double_HistoryItem_Height">28</System:Double>
            <System:Double x:Key="PART_A_Double_HistoryItem_Radius">154</System:Double>
            <System:Double x:Key="PART_A_Double_History_BottomOffset">14</System:Double>

            <System:Double x:Key="A_Double_QuickChatIconSize">38</System:Double>

            <Color x:Key="A_Color_HUDAnnaControl_NewDQCOption">#33FF0088</Color>

            <Color x:Key="A_Color_HUDAnnaControl_SystemMessage_Gamertag">#FFFFFFFF</Color>
            
            <Color x:Key="A_Color_HUDAnnaControl_Locked">#FF828282</Color>

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

            <local:MappingConverter x:Key="A_Converter_IsSourceQuickChat" Default="False">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.StaticQuickChat}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChat}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="True"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_Converter_IsSourceQuickChatNonKudos" Default="False">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.StaticQuickChat}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChat}" Value="True"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="True"/>
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_Converter_CommunicationCommandSourceToVisibility" Default="Collapsed">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="Visible"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="Visible"/>                            
            </local:MappingConverter>

            <local:MappingConverter x:Key="A_Converter_CommunicationCommandSourceToColor">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
            </local:MappingConverter>

            <ImageSource x:Key="A_BitmapImage_QuickChatEventInvite">/ForzaUI;component/Textures/Anthem/HUD/ANNA/QuickChat_Event_Icon.png</ImageSource>
            <ImageSource x:Key="A_BitmapImage_QuickChatKudos">/ForzaUI;component/Textures/Anthem/HUD/ANNA/QuickChat_Kudos_Icon.png</ImageSource>

            <local:MappingConverter x:Key="A_Converter_CommunicationCommandSourceToImageSource">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="{StaticResource A_BitmapImage_QuickChatEventInvite}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="{StaticResource A_BitmapImage_QuickChatKudos}"/>
            </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>
            <ColorAlias x:Key="A_Color_Communication_SelectedText" Color="{StaticResource H_Color_Primary_Black}"/>
            <ColorAlias x:Key="A_Color_Communication_SelectedDynamicText" Color="{StaticResource H_Color_Primary_White}"/>
            <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">#F7FFFFFF</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>
            <Duration x:Key="A_Duration_ChatNotification_AppearAndBlink">0:0:5</Duration>

            <local:MappingConverter x:Key="A_Converter_CommunicationCommandSourceToIconColor">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="{StaticResource H_Color_Primary_White}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="{StaticResource H_Color_Primary_White}"/>
            </local:MappingConverter>

            <MappingConverter x:Key="A_Converter_IsDynamicToOptionTextColor" Default="{StaticResource A_Color_Communication_SelectedText}">
                <MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{StaticResource A_Color_Communication_SelectedDynamicText}"/>
            </MappingConverter>

            <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_AutoDriveContents_FadeIn"
                DurationOverride="{StaticResource A_Duration_Destination_FadeIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" 
                                               Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_AutoDriveContents_FadeOut"
                DurationOverride="{StaticResource A_Duration_Destination_FadeOut}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.3" 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}">
                    <EasingDoubleKeyFrame 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>

            <!-- IMPORTANT! READ: DoubleAnimationUsingKeyFrames's Duration value must match AccessibilityAutoDriveComponent::ContinuousButtonPressBeforeExitSeconds (set in entities_global.xml -> accessibility_auto_drive) -->
            <local:UIStoryboard x:Key="A_Storyboard_MapGlowClip_AutoDrive_GlowFadeOut">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}"
                                               Duration="0:0:0.5"> 
                    <LinearDoubleKeyFrame KeyTime="100%" Value="1" />
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_MapGlowClip_AutoDrive_GlowFadeIn">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)" Storyboard.TargetName="{x:Null}"
                                               Duration="0:0:1.0">
                    <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                </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_ChatHighlight_ShowAndBlink" DurationOverride="{StaticResource A_Duration_ChatNotification_AppearAndBlink}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                    <EasingDoubleKeyFrame KeyTime="0:0:5.0" Value="1" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </DoubleAnimationUsingKeyFrames>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_ChatHighlight_FadeOut" DurationOverride="{StaticResource A_Duration_Options_FadeIn}">
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="{x:Null}">
                    <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="0" EasingFunction="{local:ExponentialEasing EasingMode=EaseInOut}"/>
                </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="PART_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="PART_SelectComplete"/>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                        EventName="AudioUITrigger_ChatMessageSend"/>
                </local:UIStoryboard.TriggerAnimation>
            </local:UIStoryboard>

            <local:UIStoryboard x:Key="A_Storyboard_QuickChatKudosItem_Selected"
                DurationOverride="{StaticResource A_Duration_Options_Selected}">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="0:0:1.0"
                        EventName="PART_SelectComplete"/>
                    <local:StartAudioTrigger local:TriggerAnimation.KeyTime="0:0:0.0"
                        EventName="AudioUITrigger_ChatKudosSend"/>
                </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="PART_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="PART_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>
                        
            <KeyTime x:Key="A_KeyTime_ReginEntered_Start">0:0:0</KeyTime>
            <local:OffsetKeyTime x:Key="A_KeyTime_RegionEntered_FadeIn"
                         KeyTime="{StaticResource A_KeyTime_ReginEntered_Start}"
                         Offset="0:0:0.200"/>
            <local:OffsetKeyTime x:Key="A_KeyTime_RegionEntered_Hold"
                         KeyTime="{StaticResource A_KeyTime_RegionEntered_FadeIn}"
                         Offset="0:0:2.5" />
            <local:OffsetKeyTime x:Key="A_KeyTime_RegionEntered_FadeOut"
                         KeyTime="{StaticResource A_KeyTime_RegionEntered_Hold}"
                         Offset="0:0:0.200" />

            <local:UIStoryboard x:Key="A_Storyboard_RegionEnteredText_ShowHide">
                <local:UIStoryboard.TriggerAnimation>
                    <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_RegionEntered_FadeOut}"
                                        EventName="PART_RegionEnteredTextShowComplete"/>
                </local:UIStoryboard.TriggerAnimation>
                <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                               Storyboard.TargetName="{x:Null}">
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_ReginEntered_Start}" Value="0"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RegionEntered_FadeIn}" Value="1"
                        EasingFunction="{local:ExponentialEasing EasingMode=EaseIn}"/>
                    <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RegionEntered_Hold}" Value="1"/>
                    <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_RegionEntered_FadeOut}" Value="0"
                        EasingFunction="{local:ExponentialEasing EasingMode=EaseOut}"/>
                </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"/>
            <ImageBrush x:Key="A_Brush_MapOpacity_AutoDriveWithDestination" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask_AutoDrive_WithDestination.png"/>
            <ImageBrush x:Key="A_Brush_MapOpacity_AutoDriveWithNoDestination" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Minimap_OpacityMask_AutoDrive_NoDestination.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 IsAutoDrive}" Value="True"/>
                            <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_AutoDriveWithDestination}"/>
                    </MultiDataTrigger>
                     <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAutoDrive}" Value="True"/>
                            <Condition Binding="{Binding CanShowDestination, RelativeSource={RelativeSource FindAncestor, AncestorType=local:HUDAnnaControl}}" Value="True"/>
                            <Condition Binding="{Binding DestinationDistance, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Collapsed}"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="OpacityMask" Value="{StaticResource A_Brush_MapOpacity_AutoDriveWithNoDestination}"/>
                    </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="170"/>
                <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>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="False"/>
                            <Condition Binding="{Binding IsMapVisible}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="MinWidth" Value="{StaticResource A_Double_StatusContainer_MaxWidth}"/>
                    </MultiDataTrigger>
                </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>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="False"/>
                            <Condition Binding="{Binding IsMapVisible}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="MinWidth" Value="{StaticResource A_Double_StatusContainer_MaxWidth}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_StackPanel_BottomButtons"
                TargetType="{x:Type StackPanel}">
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsMapVisible}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="HorizontalAlignment" Value="Left"/>
                        <Setter Property="Margin" Value="17,0,0,0"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_ControllerButtonControl_Status"
                TargetType="{x:Type local:ControllerButtonControl}"
                BasedOn="{StaticResource A_Style_ControllerButtonControl_Standalone}">
                <Setter Property="HideBackground" Value="True"/>
                <Setter Property="Height" Value="25"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsControllerActiveInput, RelativeSource={RelativeSource AncestorType=Page}}" Value="False">
                        <Setter Property="Height" Value="34"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsValid, RelativeSource={RelativeSource Self}}" Value="False">
                        <Setter Property="Opacity" Value="0.5"/>
                    </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>

            <local:FZMaterialPresetRoundtangleStroke x:Key="A_FZMaterialPresetRoundtangleStroke_StatusStroke"
                BasedOn="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll3px}"
                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 AnnaRootCommand.Enabled}" 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"/>
                            <Condition Binding="{Binding IsAutoDrive}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_Anna_Activated}"/>
                    </MultiDataTrigger>
                    <DataTrigger Binding="{Binding IsAutoDrive}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_AutoDrive_Active}"/>
                    </DataTrigger>
                </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>
                    <DataTrigger Binding="{Binding QuickChatCommand.Enabled}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Communication_Disabled}"/>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CommandsSource, Converter={StaticResource A_Converter_IsSourceQuickChat}}" Value="True"/>
                            <Condition Binding="{Binding HasPage}" Value="True"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                    </MultiDataTrigger>
                </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_HorizonA}">
                <Setter Property="CapHeight" Value="16"/>
                <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="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, Converter={StaticResource A_Converter_IsSourceQuickChat}}" Value="True"/>
                            <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 QuickChatCommand.Enabled}" 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 AnnaRootCommand.Enabled}" Value="False">
                        <Setter Property="Color" Value="{StaticResource A_Color_Status_Text_Faded}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_AutoDrive" TargetType="{x:Type FrameworkElement}">
                <Setter Property="VerticalAlignment" Value="Bottom"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,0,0,42"/>
                <Setter Property="Visibility" Value="{Binding IsAutoDrive, Converter={StaticResource A_Converter_BoolToVis}}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsAutoDrive}" Value="True">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_AutoDriveContents_FadeIn}"/>
                        </DataTrigger.EnterActions>
                        <DataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_AutoDriveContents_FadeOut}"/>
                        </DataTrigger.ExitActions>
                    </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="24"/>
                <Setter Property="Orientation" Value="Horizontal"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,8,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>

            <Style x:Key="A_Style_FZTextBlock_Destination" TargetType="{x:Type FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}">
                <Setter Property="Text" Value="{Binding DestinationDistance}"/>
                <Setter Property="CapHeight" Value="19"/>
                <Setter Property="FontFamily" Value="Horizon_A_tf"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,0,0,0"/>
                <Setter Property="Color" Value="{StaticResource A_Color_Destination_Text}"/>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_AutoDrive" TargetType="{x:Type FZTextBlock}" 
                BasedOn="{StaticResource A_Style_FZTextBlock_Destination}">
                <Style.Resources>
                    <Style x:Key="A_Style_FZRun_AutoDrive_HIGHLIGHT" TargetType="{x:Type local:FZRun}">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_LightBlue}"/>
                    </Style>

                    <MappingConverter x:Key="A_MarkupConverter_AutoDrive" >
                        <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_AutoDrive_HIGHLIGHT}"/>
                    </MappingConverter>
                </Style.Resources>
                <Setter Property="Text" Value="{Loc AccessibilityAutoDrive.IDS_AutoDrive_On}"/>
                <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_AutoDrive}"/>
            </Style>

            <MappingConverter x:Key="A_Converter_IsAutoDriveToImageSource" Default="/ForzaUI;component/Textures/Anthem/HUD/ANNA/Way_Point_Icon.png">
                <MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="/ForzaUI;component/Textures/Anthem/HUD/ANNA/AutoDrive_Icon.png"/>
            </MappingConverter>
            
            <Style x:Key="A_Style_FZMaterial_Destination" TargetType="{x:Type FZMaterial}">
                <Setter Property="ImageSource" Value="{Binding IsAutoDrive, Converter={StaticResource A_Converter_IsAutoDriveToImageSource}}"/>
                <Setter Property="Height" Value="24"/>
                <Setter Property="Width" Value="24"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
            </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" CheckEnumKey="CommunicationCommandSource">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.ANNA}" Value="{StaticResource A_Color_Anna_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.StaticQuickChat}" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChat}" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.PlayerInteraction}" Value="{StaticResource A_Color_Interaction_Activated}"/>
            </local:MappingConverter>
            
            <local:MappingConverter x:Key="A_Converter_ANNA_MinimapGlowColor" CheckEnumKey="CommunicationCommandSource">
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.ANNA}" Value="{StaticResource A_Color_Anna_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.StaticQuickChat}" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChat}" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatEventInvite}" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <local:MappingConverterEntry Key="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" 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_HUDAnna_CommandGlassPanel}"/>
                <Setter Property="ImageSource" Value="{Binding MaskImageSource}"/>
                <Setter Property="UVMap" Value="{StaticResource A_FZMaterialUVMap_CommandItem}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding NewDQC}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDAnnaControl_NewDQCOption}"/>
                    </DataTrigger>
                    <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>

                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsSelected}" Value="True"/>
                            <Condition Binding="{Binding IsDynamicOption}" Value="True" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                    </MultiDataTrigger>

                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsSelected}" Value="True"/>
                            <Condition Binding="{Binding Source}" Value="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                    </MultiDataTrigger>
                </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 IsDynamicOption}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Source}" Value="{x:Static local:CommunicationCommandSource.DynamicQuickChatKudos}">
                        <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Dynamic}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding IsLocked}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDAnnaControl_Locked}"/>
                    </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_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="8,0,0,0"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsMapVisible}" Value="False">
                        <Setter Property="Margin" Value="17,0,0,-10"/>
                    </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="{Binding IsDynamicOption, Converter={StaticResource A_Converter_IsDynamicToOptionTextColor}}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <AutoScrollSettings x:Key="A_AutoScrollSettings_AnnaSpeechItems" 
                Speed="40"
                InitialPause="0:0:1.0"
                ScrollOrientation="Horizontal"
                ApplyClip="True"
                ScrollSeparation="50"/>
            
            <Style x:Key="A_Style_FZTextBlock_AutoScrollCommandItem"
                TargetType="{x:Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_CommandItemText}">
                <Setter Property="ClipToBounds" Value="False" />
                <Setter Property="AutoScroll" Value="{StaticResource A_AutoScrollSettings_AnnaSpeechItems}" />
                <Setter Property="AutoScroll.AllowScrolling" Value="True"/>  
                <Setter Property="Stretch" Value="None" />
                <Setter Property="FontFamily" Value="Horizon_A" />
                <Setter Property="MaxWidth" Value="200"/>
                <Setter Property="HorizontalAlignment" Value="Right"/>
                <Setter Property="TextAlignment" Value="Left"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsLocked}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDAnnaControl_Locked}"/>
                    </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 IsLocked}" Value="True">
                        <Setter Property="Opacity" Value="0.5"/>
                    </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>
            
            <Style x:Key="A_Style_FZMaterial_ButtonBackground"
                   TargetType="{Type local:FZMaterial}"
                   BasedOn="{StaticResource A_Style_FZMaterial_GlassPanel_NonInteractive}">
                <Setter Property="Preset"
                        Value="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_OuterAll3px}" />
            </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="377"
                      local:ScreenReader.LineType="ItemSelectionConfirmed"
                      local:ScreenReader.Event="OnChange">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="38"/>
                    </Grid.ColumnDefinitions>

                    <Grid x:Name="RightIcon" Grid.Column="1" Margin="-10,-10,0,-10"
                          Visibility="{Binding Source, Converter={StaticResource A_Converter_CommunicationCommandSourceToVisibility}}">
                        <local:FZMaterial Color="{Binding Source, Converter={StaticResource A_Converter_CommunicationCommandSourceToColor}}" 
                                          Preset="{Roundtangle CornerRadius={CornerRadius TopRight=2, BottomRight=2}}"
                                          Width="48" Height="{StaticResource A_Double_QuickChatIconSize}">
                            <local:FZMaterial HorizontalAlignment="Right" ImageSource="{Binding Source, Converter={StaticResource A_Converter_CommunicationCommandSourceToImageSource}}"
                                              Width="{StaticResource A_Double_QuickChatIconSize}" Height="{StaticResource A_Double_QuickChatIconSize}"
                                              Color="{Binding Source, Converter={StaticResource A_Converter_CommunicationCommandSourceToIconColor}}"
                                              Visibility="Visible"/>
                        </local:FZMaterial>
                    </Grid>
                    <Grid Grid.Column="0" Margin="18,0,0,0">
                        <!-- Added this margin here because the background was spilling a tiny bit over the outiline and making the icon feel a little separated-->
                        <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_CommandItem_Background}" Margin="0,0,1,0"/>
                        <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"
                                Command="{Binding AnnaItemActivationCommand}"
                                SupportsControllerInput="True"
                                Visibility="Visible"
                                VerticalAlignment="Center"/>
                            <DockPanel Margin="0,5" >
                                <FZMaterial x:Name="LockIcon"
                                            ImageSource="/ForzaUI;component/Textures/Anthem/Icons/Lock.png"
                                            Visibility="{Binding IsLocked, Converter={StaticResource A_Converter_BoolToVis}}"
                                            Color="{StaticResource A_Color_HUDAnnaControl_Locked}"
                                            Width="13"
                                            Height="16"
                                            Margin="0,0,8,0"
                                            DockPanel.Dock="Left"/>
                                <local:FZTextBlock
                                    Text="{Binding Command}"
                                    Style="{StaticResource A_Style_FZTextBlock_AutoScrollCommandItem}"/>
                            </DockPanel> 
                        </DockPanel>
                    </Grid>

                </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, Converter={StaticResource A_Converter_IsSourceQuickChatNonKudos}}" Value="True"/>
                        </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.DynamicQuickChatKudos}"/>
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_QuickChatKudosItem_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>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{HUDDataBinding IsMapVisible}" Value="False"/>
                        </MultiDataTrigger.Conditions>
                        <Setter TargetName="RootContainer" Property="MinWidth" Value="302"/>
                    </MultiDataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>

            <Style x:Key="A_Style_FZTextBlock_HistoryItemPlayerID" BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}" TargetType="local:FZTextBlock">
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSystemMessage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUDAnnaControl_SystemMessage_Gamertag}"/>
                    </DataTrigger>
                </Style.Triggers>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding UserProfile.IsLocalPlayer}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUD_HighlightText}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_HistoryItemMessage_Markup_GAMERTAG"
               TargetType="local:FZRun">
                <Setter Property="FontFamily" Value="Horizon_A"/>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_HistoryItemMessage">
                <MappingConverterEntry Key="{NoCase GAMERTAG}" Value="{StaticResource A_Style_HistoryItemMessage_Markup_GAMERTAG}" />
            </MappingConverter>

            <Style x:Key="A_Style_FZTextBlock_HistoryItemMessage" BasedOn="{StaticResource A_Style_FZTextBlock_HudMedium}" TargetType="local:FZTextBlock">
                <Setter Property="FontFamily" Value="Horizon_B"/>
                <Setter Property="Color" Value="{StaticResource A_Color_QuickChat_Activated}"/>
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_HistoryItemMessage}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSystemMessage}" Value="True">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding UserProfile.IsLocalPlayer}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_HUD_HighlightText}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
            
            <DataTemplate x:Key="A_DataTemplate_HistoryItem">
                <Grid VerticalAlignment="Center"
                      Height="{StaticResource PART_A_Double_HistoryItem_Height}">
                    <FZMaterial Visibility="{StaticResource A_Visibility_ShowForHighContrastOnly}"
                                Preset="{StaticResource A_FZMaterialPresetGlass_CommandItemBackground}"
                                Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"
                                HorizontalAlignment="Left"
                                Margin="-4,0,0,0"
                                Width="{Binding ActualWidth, ElementName=HistoryItemTextContainer, Converter={LinearTransformConverter Add=8}}"/>
                    <StackPanel x:Name="HistoryItemTextContainer" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HistoryItemPlayerID}"
                            CapHeight="{StaticResource A_Double_HistoryItem_CapHeight}"
                            Text="{Binding UserProfile.FormattedGamertag}"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HistoryItemPlayerID}"
                            CapHeight="{StaticResource A_Double_HistoryItem_CapHeight}"
                            Text="{local:Loc Anna.IDS_QuickChatHistory_Separator}"
                            Visibility="{Binding IsSystemMessage, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"/>
                        <Decorator Width="5"/>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HistoryItemMessage}"
                            CapHeight="{StaticResource A_Double_HistoryItem_CapHeight}"
                            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>
                </Grid>
                <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>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HasPage}" Value="True" />
                            <Condition Binding="{Binding IsAutoDrive}" Value="False" />
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapBackgroundClip_GlowReveal}"/>
                        </MultiDataTrigger.EnterActions>
                        <MultiDataTrigger.ExitActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapBackgroundClip_GlowHide}"/>
                        </MultiDataTrigger.ExitActions>
                    </MultiDataTrigger>
                </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>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HasPage}" Value="True"/>  
                            <Condition Binding="{Binding IsAutoDrive}" Value="False"/>  
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_GlowReveal}"/>
                        </MultiDataTrigger.EnterActions>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding HasPage}" Value="False"/>  
                            <Condition Binding="{Binding IsAutoDrive}" Value="False"/>  
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_GlowHide}"/>
                        </MultiDataTrigger.EnterActions>
                    </MultiDataTrigger>

                    <DataTrigger Binding="{Binding CancelAutoDriveInputState}" Value="{x:Static ContinuousButtonPressState.InProgress}">
                        <DataTrigger.EnterActions>
                            <BeginStoryboard x:Name="BeginStoryboard_AutoDriveGlowReveal"
                                             Storyboard="{StaticResource A_Storyboard_MapGlowClip_AutoDrive_GlowFadeOut}"/>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" 
                                               EventName="AutodriveReturnPlayerControl_Start"/>
                        </DataTrigger.EnterActions>
                        <!-- This needs to be the height of the of anna excluding the top Destination cut out and bottom options -->
                        <Setter Property="Height" Value="225"/> 
                        <!-- The margin is offset from the top so that this clips only the centre -->
                        <Setter Property="Margin" Value="0,34,0,0"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding CancelAutoDriveInputState}" Value="{x:Static ContinuousButtonPressState.Complete}">
                        <DataTrigger.EnterActions>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" 
                                               EventName="AutodriveReturnPlayerControl_Complete"/>
                        </DataTrigger.EnterActions>
                    </DataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CancelAutoDriveInputState}" Value="{x:Static ContinuousButtonPressState.None}"/>  
                            <Condition Binding="{Binding IsAutoDrive}" Value="True"/>  
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <StopStoryboard BeginStoryboardName="BeginStoryboard_AutoDriveGlowReveal"/>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_AutoDrive_GlowFadeIn}"/>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" 
                                               EventName="AutodriveReturnPlayerControl_Stop"/>
                        </MultiDataTrigger.EnterActions>
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding CancelAutoDriveInputState}" Value="{x:Static ContinuousButtonPressState.Stopped}"/>  
                            <Condition Binding="{Binding IsAutoDrive}" Value="True"/>  
                        </MultiDataTrigger.Conditions>
                        <MultiDataTrigger.EnterActions>
                            <StopStoryboard BeginStoryboardName="BeginStoryboard_AutoDriveGlowReveal"/>
                            <BeginStoryboard Storyboard="{StaticResource A_Storyboard_MapGlowClip_AutoDrive_GlowFadeIn}"/>
                            <StartAudioTrigger TriggerAnimation.KeyTime="0:0:0.0" 
                                               EventName="AutodriveReturnPlayerControl_Stop"/>
                        </MultiDataTrigger.EnterActions>
                    </MultiDataTrigger>
                </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_MinimapGlowColor}}" />
                <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>
                    <DataTrigger Binding="{Binding IsAutoDrive}" Value="True">
                        <Setter Property="Color" Value="{StaticResource A_Color_AutoDrive_Active}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_Anna_Container" TargetType="FrameworkElement">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_ActivateAnna_Format}"/>
                <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding ScreenReaderName, ElementName=ControllerButtonControl_Anna}"/>
                <Setter Property="local:ScreenReader.Event" Value="{x:Static local:ScreenReaderEvent.OnChange}"/>
                <Setter Property="local:ScreenReader.LineType" Value="{x:Static local:ScreenReaderLineType.ANNAInputOptions}"/>
                <Setter Property="local:ScreenReader.InterruptBehavior" Value="WaitForNonePlaying"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsAnnaAvailable}" Value="{StaticResource A_Boolean_True}"/>
                            <Condition Binding="{Binding IsAnnaVisible}" Value="{StaticResource A_Boolean_True}"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:ScreenReader.Line" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FrameworkElement_QuickChat_Container" TargetType="FrameworkElement">
                <Setter Property="local:MultiStringFormatter.Format" Value="{local:Loc Main.IDS_ScreenReader_ActivateQuickChat_Format}"/>
                <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding ScreenReaderName, ElementName=ControllerButtonControl_QuickChat}"/>
                <Setter Property="local:ScreenReader.Event" Value="{x:Static local:ScreenReaderEvent.OnChange}"/>
                <Setter Property="local:ScreenReader.LineType" Value="{x:Static local:ScreenReaderLineType.QuickChatItem}"/>
                <Setter Property="local:ScreenReader.InterruptBehavior" Value="WaitForNonePlaying"/>
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsQuickChatAvailable}" Value="{StaticResource A_Boolean_True}"/>
                            <Condition Binding="{Binding IsQuickChatVisible}" Value="{StaticResource A_Boolean_True}"/>
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:ScreenReader.Line" Value="{Binding (local:MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZTextBlock_RegionEntered" TargetType="{x:Type local:FZTextBlock}">
                <Setter Property="MaxWidth" Value="300"/>
                <Setter Property="Text" Value="{Binding EnteredRegionName}"/>
                <Setter Property="CapHeight" Value="15"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="Margin" Value="0,0,0,10"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
                <Setter Property="Opacity" Value="0"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsEnteredNewRegion}" Value="True">
                        <DataTrigger.EnterActions>
                            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_RegionEnteredText_ShowHide}" />
                        </DataTrigger.EnterActions>
                    </DataTrigger>
                </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="PART_LayoutRoot" RenderTransformOrigin="0.5,0.5">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="PART_ShownMinimized"/>
                <VisualState x:Name="PART_ShownFull"/>
                <VisualState x:Name="PART_Hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="PART_LayoutRoot" Duration="0:0:1">
                            <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.5" From="PART_ShownFull" To="PART_ShownMinimized" Storyboard="{StaticResource A_Storyboard_PlaySleepSoundAndMinimize}" />
                    <VisualTransition GeneratedDuration="0:0:0.5" From="PART_ShownMinimized" To="PART_ShownFull" Storyboard="{StaticResource A_Storyboard_PlayWakeSoundAndShowFull}" />
                </VisualStateGroup.Transitions>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <Grid.RenderTransform>
            <TransformGroup>
                <RotateTransform Angle="{Binding Vibration.OffsetAngle}"/>
                <TranslateTransform X="{Binding Vibration.OffsetX}" Y="{Binding Vibration.OffsetY}"/>
            </TransformGroup>
        </Grid.RenderTransform>

        <Grid HorizontalAlignment="Left" VerticalAlignment="Bottom">
            <Decorator x:Name="BottomButtons" Width="330" HorizontalAlignment="Left">
                <Grid>
                    <StackPanel Style="{StaticResource A_Style_StackPanel_BottomButtons}"
                                Orientation="Horizontal"
                                VerticalAlignment="Bottom">
                        <Grid x:Name="AnnaButton" Style="{StaticResource A_Style_FrameworkElement_StatusContainer_Anna}">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ButtonBackground}"
                                              Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"/>
                            <StackPanel Orientation="Horizontal"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"
                                        Margin="8,0"
								        Style="{StaticResource A_Style_FrameworkElement_Anna_Container}">
                                <local:ControllerButtonControl x:Name="ControllerButtonControl_Anna"
                                                               Style="{StaticResource A_Style_ControllerButtonControl_Status}"
                                                               Command="{Binding AnnaRootCommand}"
                                                               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>

                        <StackPanel Orientation="Horizontal" FlowDirection="LeftToRight">
                            <Grid x:Name="ChatButton" Style="{StaticResource A_Style_FrameworkElement_StatusContainer_QuickChat}">

                                <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ButtonBackground}"
                                                  Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"
                                                  Margin="0,0,1,0"/>
                                <StackPanel Orientation="Horizontal"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Center"
                                            Margin="8,0"
									        Style="{StaticResource A_Style_FrameworkElement_QuickChat_Container}" >
                                    <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}"
                                                                       Command="{Binding QuickChatCommand}"
                                                                       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}"/>
                                <local:FZMaterial Color="{StaticResource A_Color_QuickChat_Dynamic}" 
                                                  Visibility="Visible">
                                    <local:FZMaterial.Style>
                                        <Style TargetType="{x:Type local:FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_StatusStroke_QuickChat}">
                                            <Setter Property="Opacity" Value="0"/>
                                            <Style.Triggers>
                                                <DataTrigger Binding="{Binding IsNewDQCNotificationVisible}" Value="True">
                                                    <DataTrigger.EnterActions>
                                                        <BeginStoryboard Storyboard="{StaticResource A_Storyboard_ChatHighlight_ShowAndBlink}"/>
                                                    </DataTrigger.EnterActions>
                                                    <DataTrigger.ExitActions>
                                                        <BeginStoryboard Storyboard="{StaticResource A_Storyboard_ChatHighlight_FadeOut}"/>
                                                    </DataTrigger.ExitActions>
                                                </DataTrigger>
                                            </Style.Triggers>
                                        </Style>
                                    </local:FZMaterial.Style>
                                </local:FZMaterial>
                            </Grid>
                            <Grid x:Name="QuickChatNotificationIcon" 
                                  HorizontalAlignment="Center" 
                                  VerticalAlignment="Bottom" 
                                  Margin="-20,0,0,0" 
                                  Panel.ZIndex="-1"
                                  Visibility="Visible">
                                <Grid.Style>
                                    <Style TargetType="{x:Type Grid}">
                                        <Setter Property="Opacity" Value="0"/>
                                        <Style.Triggers>
                                            <DataTrigger Binding="{Binding IsNewDQCNotificationVisible}" Value="True">
                                                <DataTrigger.EnterActions>
                                                    <BeginStoryboard Storyboard="{StaticResource A_Storyboard_ChatHighlight_ShowAndBlink}"/>
                                                </DataTrigger.EnterActions>
                                                <DataTrigger.ExitActions>
                                                    <BeginStoryboard Storyboard="{StaticResource A_Storyboard_ChatHighlight_FadeOut}"/>
                                                </DataTrigger.ExitActions>
                                            </DataTrigger>
                                        </Style.Triggers>
                                    </Style>
                                </Grid.Style>

                                <local:FZMaterial Color="{StaticResource A_Color_QuickChat_Dynamic}" 
                                          Preset="{StaticResource H_Roundtangle_RightOnly_3px}"
                                          Width="48" Height="{StaticResource A_Double_StatusContainer_Height}">
                                    <local:FZMaterial HorizontalAlignment="Right" ImageSource="/ForzaUI;component/Textures/Anthem/HUD/ANNA/QuickChat_NewMessage_Icon.png" 
                                              Width="30" Height="30"
                                              Color="{StaticResource H_Color_Primary_White}"
                                              Visibility="Visible"/>
                                </local:FZMaterial>
                            </Grid>

                        </StackPanel>
                    </StackPanel>
                </Grid>
            </Decorator>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <local:FZTextBlock x:Name="RegionEnteredText"
                                   Style="{StaticResource A_Style_FZTextBlock_RegionEntered}"
                                   Visibility="{Binding IsMapVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                   Grid.Column="0"
                                   Grid.Row="0"/>
                <Grid x:Name="Minimap" Width="{StaticResource A_Double_Map_Width}"
                      Height="{StaticResource A_Double_Map_Height}"
                      Visibility="{Binding IsMapVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                      Grid.Column="0"
                      Grid.Row="1">
                    <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 x:Name="MiniMapBackgroundContainerGlow" 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 x:Name="DestinationContainer" Style="{StaticResource A_Style_StackPanel_Destination}">
                        <Grid Margin="0,0,10,0">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Destination}" Margin="0,0,-3,-3" Color="{StaticResource A_Color_DarkenedBar_Background}"/> <!-- Shadow -->
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_Destination}" />
                        </Grid>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_Destination}"/>
                    </StackPanel>

                    <Grid x:Name="AutoDriveContainer" 
                          Style="{StaticResource A_Style_FrameworkElement_AutoDrive}"
                          ZPanel.ZIndex="1">
                        <Grid Style="{StaticResource A_Style_FrameworkElement_StatusContainer_Anna}">
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_ButtonBackground}"
                                              Color="{StaticResource A_Color_HUDAnna_CommandGlassPanel}"/>
                                <Decorator HorizontalAlignment="Center"
                                           VerticalAlignment="Center"
                                           Margin="8,0">
                                    <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_AutoDrive}"/>
                                </Decorator>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_StatusStroke_Shared}"
                                              local:BindingProxy.A="{Binding IsValid, ElementName=ControllerButtonControl_Anna}"/>
                        </Grid>
                    </Grid>

                    <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}}}"
                                                                            ViewContextDataSource="{Binding MapViewContextDataSource}"/>
                                    <local:MapCustomRenderElement Alpha="1.0"
                                        MapProfile="hud"
                                        MapId="default"
                                        x:Name="PART_MapCustomRenderElement"
                                        MapView="{Binding ElementName=MiniMapView}"
                                        CanHoldRenderForResources="true" />
                                </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}"
                                                                                     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}}}"
                                                                                     ViewContextDataSource="{Binding MapViewContextDataSource}"/>
                                    <local:MapCustomRenderElement Alpha="1.0"
                                        MapProfile="hud_anchored_items"
                                        MapId="default"
                                        MapView="{Binding ElementName=MiniMapAnchoredItemsView}"
                                        x:Name="PART_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 x:Name="Messages"
                    Width="{StaticResource A_Double_Map_Width}" 
                    Height="{StaticResource A_Double_Map_Height}"
                    Grid.Column="1"
                    Grid.Row="1">
                    <StackPanel Style="{StaticResource A_Style_StackPanel_CommandOptions}">
                        <local:CommonListBox x:Name="QuickChatOptions" 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,26,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 x:Name="ItemHost" 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 x:Name="HistoryItems" 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>
                        <FrameworkElement Height="{StaticResource PART_A_Double_History_BottomOffset}"/>
                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>

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