<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"
    mc:Ignorable="d"
    x:Class="ForzaUI.HUDMajorNotificationControl"
    x:Name="UserControl"
    Margin="0,247,0,0"
    VerticalAlignment="Top">

    <UserControl.Resources>
        <ResourceDictionary>
            <System:Double x:Key="A_HUDMajorNotifcation_MaxWidth">1000</System:Double>
            <CircleEase x:Key="A_CircleEase" EasingMode="EaseIn" />
            <CircleEase x:Key="A_CircleEase_InOut" EasingMode="EaseInOut" />
            <BitmapImage x:Key="A_ImageSource_RivalsElipseGlow" UriSource="/ForzaUI;component/Textures/Data_Bound/Anthem/Rivals/ElipseGlow.png" />

            <MappingConverter x:Key="A_LangStrToMajorNotificationLineHeight" Default="60">
                <MappingConverterEntry Key="CHS" Value="65"/>
                <MappingConverterEntry Key="CHT" Value="65"/>
                <MappingConverterEntry Key="JP" Value="65"/>
                <MappingConverterEntry Key="KO" Value="65"/>
            </MappingConverter>

            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR0"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_FlagRush_Flag0}"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR1"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_FlagRush_Flag1}" />
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR2"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_FlagRush_Flag2}" />
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR3"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_FlagRush_Flag3}" />
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR4"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_FlagRush_Flag4}" />
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_HIGHLIGHT"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_HUD_AlternateText}"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_DLU"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="#FFFFEA29"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_ZOMBIE"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="#79af4a"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_INFECTED"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="#ff8500"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_SURVIVOR"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="#ac6de8"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_KING"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_King_Text}"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_TEAMA"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_HUD_Team_A_NotificationText}"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_TEAMB"
                   TargetType="local:FZRun">
                <Setter Property="Color"
                        Value="{StaticResource A_Color_HUD_Team_B_NotificationText}"/>
            </Style>
            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_LARGE"
                   TargetType="local:FZRun">
                <Setter Property="FontSize"
                        Value="240"/>
            </Style>
            
            <ImageSource x:Key="A_BitmapImage_WristbandIcon">/ForzaUI;component/Textures/Data_Bound/Horizon_Map/icons/MapIcons/wristband_objective.png</ImageSource>
            <Style x:Key="A_Style_FZMaterial_WristbandIcon" TargetType="local:FZMaterial">
                <Setter Property="Height" Value="66" />
                <Setter Property="Width" Value="58" />
                <Setter Property="ImageSource" Value="{StaticResource A_BitmapImage_WristbandIcon}" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="0,-10,0,0" />
            </Style>

            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_WRISTBAND_OBJECTIVE_ICON" TargetType="Control">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_WristbandIcon}"/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="A_Style_FZRun_Markup_MajorNotification_BUTTON" TargetType="{x:Type Control}">
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Control}">
                            <ControllerButtonControl Style="{StaticResource A_Style_ControllerButtonControl_Standalone}"
                                                     Height="40"
                                                     UseLargeIcon="True"
                                                     Margin="0,0,3,0"
                                                     InputOverride="{Binding OptionalInput}" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_MajorNotification">
                <MappingConverterEntry Key="{NoCase FLAGRUSHCOLOR0}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR0}" />
                <MappingConverterEntry Key="{NoCase FLAGRUSHCOLOR1}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR1}" />
                <MappingConverterEntry Key="{NoCase FLAGRUSHCOLOR2}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR2}" />
                <MappingConverterEntry Key="{NoCase FLAGRUSHCOLOR3}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR3}" />
                <MappingConverterEntry Key="{NoCase FLAGRUSHCOLOR4}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_FLAGRUSHCOLOR4}" />
                <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_HIGHLIGHT}" />
                <MappingConverterEntry Key="{NoCase DLU}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_DLU}" />
                <MappingConverterEntry Key="{NoCase ZOMBIE}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_ZOMBIE}" />
                <MappingConverterEntry Key="{NoCase INFECTED}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_INFECTED}" />
                <MappingConverterEntry Key="{NoCase SURVIVOR}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_SURVIVOR}" />
                <MappingConverterEntry Key="{NoCase KING}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_KING}" />
                <MappingConverterEntry Key="{NoCase TEAMA}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_TEAMA}" />
                <MappingConverterEntry Key="{NoCase TEAMB}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_TEAMB}" />
                <MappingConverterEntry Key="{NoCase LARGE}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_LARGE}" />
                <MappingConverterEntry Key="{NoCase WRISTBAND_OBJECTIVE_ICON}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_WRISTBAND_OBJECTIVE_ICON}" />
                <MappingConverterEntry Key="{NoCase BUTTON}" Value="{StaticResource A_Style_FZRun_Markup_MajorNotification_BUTTON}" />
            </MappingConverter>

            <!-- Override the shadow depth because our text is larger -->
            <DropShadowEffect x:Key="A_DropShadowEffect_DefaultHud"
                              Color="{StaticResource A_Color_HUDDropShadow}"
                              BlurRadius="0"
                              ShadowDepth="3" />

            <Style x:Key="A_Style_FZTextBlock_HUDMajorNotification" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HUDBase}">
                <Setter Property="CapHeight" Value="40" />
                <Setter Property="FontFamily" Value="Horizon_A_tf" />
                <Setter Property="LineHeight" Value="60" />
            </Style>
                              
            <Style x:Key="A_Style_FZMaterial_NotificationImage"
                   TargetType="local:FZMaterial">
                <Setter Property="Width" Value="670"/>
                <Setter Property="Height" Value="376"/>
                <Setter Property="Visibility" Value="{Binding TexturePath, Converter={StaticResource A_StringVisConverter}}" />
            </Style>

            <Style x:Key="A_Style_ScreenReader_MajorNotifications">
                <Setter Property="local:ManualPassthroughProperty.Allowed" Value="{StaticResource A_Boolean_False}"/>
                <Setter Property="local:ManualPassthroughProperty.Input" Value="{Binding (local.MultiStringFormatter.Output), RelativeSource={RelativeSource Self}}"/>
                <Setter Property="local:ScreenReader.Line" Value="{Binding (local:ManualPassthroughProperty.Output), RelativeSource={RelativeSource Self}, Converter={StaticResource A_Converter_TrimInlineMarkup}}"/>
                <Setter Property="local:ScreenReader.LineType" Value="NotificationTitle"/>
                <Setter Property="local:ScreenReader.Event" Value="OnChange"/>
                <Setter Property="local:MultiStringFormatter.Param0" Value="{Binding Maintext}" />
                <Setter Property="local:MultiStringFormatter.Param1" Value="{Binding ScreenReaderName, ElementName=MajorNotificationPromptButton}" />
                <Setter Property="local:MultiStringFormatter.Param2" Value="{Binding Subtext}" />
                <Style.Triggers>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsActivatable}" Value="{StaticResource A_Boolean_True}" />
                            <Condition Binding="{Binding Subtext, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local.Loc UINotifications.IDS_ScreenReader_Format_NotificationAndPrompt}" />
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsActivatable}" Value="{StaticResource A_Boolean_False}" />
                            <Condition Binding="{Binding Subtext, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Visible}" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local.Loc UINotifications.IDS_ScreenReader_Format_NotificationTwoLinesNoPrompt}" />
                    </MultiDataTrigger>
                    <MultiDataTrigger>
                        <MultiDataTrigger.Conditions>
                            <Condition Binding="{Binding IsActivatable}" Value="{StaticResource A_Boolean_False}" />
                            <Condition Binding="{Binding Subtext, Converter={StaticResource A_StringVisConverter}}" Value="{x:Static Visibility.Collapsed}" />
                        </MultiDataTrigger.Conditions>
                        <Setter Property="local:MultiStringFormatter.Format" Value="{local.Loc UINotifications.IDS_ScreenReader_Format_Notification}" />
                    </MultiDataTrigger>
                </Style.Triggers>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="PART_LayoutRoot" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5">

        <VisualStateManager.VisualStateGroups>
            <UIVisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="PART_Hidden">
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.9"
                                          EventName="PART_HiddenComplete"/>
                        </UIStoryboard.TriggerAnimation>
                        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ManualPassthroughProperty.Allowed)" Storyboard.TargetName="TopLine">
                            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="False"/>
                        </BooleanAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:0.9" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BottomLine">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0" Value="1"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0" EasingFunction="{StaticResource A_CircleEase}"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:0.9" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BgEllipseForContrast">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0" Value="1"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0" EasingFunction="{StaticResource A_CircleEase}"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:1.0" 
                                                       Storyboard.TargetName="TopLineScrollOff"
                                                       Storyboard.TargetProperty="Tag">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0"
                                                  Value="0" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.55"
                                                  Value="0" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.9"
                                                  Value="1"
                                                  EasingFunction="{StaticResource A_CircleEase}"/>
                        </DoubleAnimationUsingKeyFrames>
                    </UIStoryboard>
                </VisualState>
                <VisualState x:Name="PART_Shown">
                    <UIStoryboard>
                        <UIStoryboard.TriggerAnimation>
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:0.01"
                                          EventName="PART_StartShowAudio"/>
                            <RaiseFzEvent TriggerAnimation.KeyTime="0:0:4.0"
                                          EventName="PART_ShownComplete"/>
                        </UIStoryboard.TriggerAnimation>
                        <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="(local:ManualPassthroughProperty.Allowed)" Storyboard.TargetName="TopLine">
                            <DiscreteBooleanKeyFrame KeyTime="0:0:0.0" Value="True"/>
                        </BooleanAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:1.0" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TopLine">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="5" EasingFunction="{StaticResource A_CircleEase}" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:1.0" 
                                                       Storyboard.TargetName="TopLineScrollOn"
                                                       Storyboard.TargetProperty="Tag">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0"
                                                  Value="1.3" />
                            <EasingDoubleKeyFrame KeyTime="0:0:0.4"
                                                  Value="0" 
                                                  EasingFunction="{StaticResource A_CircleEase}"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BottomLine">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BgEllipseForContrast">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.0" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:1.0" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="GlowSlide">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:1.0" Value="1" EasingFunction="{StaticResource A_CircleEase_InOut}"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Duration="0:0:1.0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Glow">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="0" />
                            <LinearDoubleKeyFrame KeyTime="0:0:0.7" Value="0.5" />
                            <LinearDoubleKeyFrame KeyTime="0:0:0.8" Value="0.5" />
                            <LinearDoubleKeyFrame KeyTime="0:0:1.0" Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                    </UIStoryboard>
                </VisualState>
            </UIVisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <!-- this grid allows the BgEllipse viewbox (which spans all cols/rows) to size itself based on the actual notification content in the center of the 3x3 grid, without actually affecting the size of it as it would if they shared the same grid cell -->
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Viewbox x:Name="BgEllipseForContrast"  Grid.Row="0" Grid.Column="0" Grid.RowSpan="3" Grid.ColumnSpan="3" Stretch="Fill" StretchDirection="Both" Margin="{StaticResource A_Thickness_BgEllipseMargins}"
                 MaxWidth="{Binding ActualWidth, ElementName=MajorNotificationContent, Mode=OneWay, Converter={MathOperationConverter Operation=Add}, ConverterParameter={StaticResource A_Double_BgEllipsePaddingW}}"
                 MaxHeight="{Binding ActualHeight, ElementName=MajorNotificationContent, Mode=OneWay, Converter={MathOperationConverter Operation=Add}, ConverterParameter={StaticResource A_Double_BgEllipsePaddingH}}">
            <!-- this material should be a circle, so it can be distorted by the viewbox around it into an appropriately sized/shaped ellipse -->
            <FZMaterial Style="{StaticResource H_Style_FZMaterial_HudBgEllipse_CircleShadow}" />
        </Viewbox>

        <StackPanel Grid.Row="1" Grid.Column="1" x:Name="MajorNotificationContent" HorizontalAlignment="Center">
            <Grid x:Name="ClipGrid">

                <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromBottom}" x:Name="TopLineScrollOff">
                    <ContentControl Style="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromTop}" x:Name="TopLineScrollOn">
                        <StackPanel x:Name="TopLine" Orientation="Vertical" RenderTransformOrigin="0.5, 0.5" Margin="10,8,10,15" 
                                Style="{StaticResource A_Style_ScreenReader_MajorNotifications}">
                            <StackPanel.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform />
                                    <SkewTransform />
                                    <RotateTransform />
                                    <TranslateTransform />
                                </TransformGroup>
                            </StackPanel.RenderTransform>
                            <local:FZMaterial ImageSource="{Binding TexturePath}"
                                            Style="{StaticResource A_Style_FZMaterial_NotificationImage}"
                                            Margin="0,0,0,-10" />
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HUDMajorNotification}"
                                            HorizontalAlignment="Center"
                                            Text="{Binding Maintext, Converter={StaticResource A_StringToUpper}}"
                                            MarkupConverter="{StaticResource A_MappingConverter_MajorNotification}" 
                                            Effect="{StaticResource A_DropShadowEffect_DefaultHud}" 
                                            MaxWidth="{StaticResource A_HUDMajorNotifcation_MaxWidth}" 
                                            TextWrapping="Wrap" 
                                            TextAlignment="Center" 
                                            LineStackingStrategy="BlockLineHeight" 
                                            LineHeight="{Binding LangStr, Source={StaticResource PART_UISceneContext}, Converter={StaticResource A_LangStrToMajorNotificationLineHeight}}"/>

                            <Decorator HorizontalAlignment="Center" Margin="0,20,0,0" Visibility="{Binding IsCountdown, Converter={StaticResource A_FZBooleanToVisibilityConverter}}" RenderTransform="{StaticResource A_SkewTransform_HUD_Italics}" RenderTransformOrigin="0.5,0.5">
                                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HUDMajorNotification}" Text="{Binding Countdown}" Effect="{StaticResource A_DropShadowEffect_DefaultHud}" MaxWidth="{StaticResource A_HUDMajorNotifcation_MaxWidth}" TextWrapping="Wrap" TextAlignment="Center" Color="{StaticResource A_Color_HUD_AlternateText}" />
                            </Decorator>
                        </StackPanel>
                    </ContentControl>
                </ContentControl>

                <StackPanel Orientation="Horizontal">
                    <Grid x:Name="GlowSlide" Width="{Binding ActualWidth, ElementName=TopLine}">
                        <Grid.LayoutTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0"/>
                                <SkewTransform />
                                <RotateTransform />
                                <TranslateTransform />
                            </TransformGroup>
                        </Grid.LayoutTransform>
                    </Grid>
                    <local:FZMaterial x:Name="Glow" ImageSource="{StaticResource A_ImageSource_RivalsElipseGlow}" Preset="{StaticResource A_FZMaterialPresetAdditive}" Height="{Binding ActualHeight, ElementName=TopLine}" Width="700" RenderTransformOrigin="0.5,0.5" Opacity="0" Tag="0" Margin="-350,-75,-350,-75">
                        <local:FZMaterial.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleY="2.5"/>
                                <SkewTransform />
                                <RotateTransform />
                                <TranslateTransform />
                            </TransformGroup>
                        </local:FZMaterial.RenderTransform>
                    </local:FZMaterial>
                </StackPanel>
            </Grid>
            <StackPanel x:Name="BottomLine" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,15,0,0" Visibility="{Binding Subtext, Converter={StaticResource A_StringVisConverter}}">
                <local:ControllerButtonControl x:Name="MajorNotificationPromptButton"  Height="50"
                                        Margin="0,-10,10,-10"
                                        Visibility="{Binding IsActivatable, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                        Style="{StaticResource A_Style_ControllerButtonControl_ActivationButton}" 
                                        UseLargeIcon="True"
                                        Command="{Binding ActivateCommand}"/>
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HUDMajorNotification}"
                            FontFamily="Horizon_B"
                            CapHeight="28"
                            MaxWidth="{StaticResource A_HUDMajorNotifcation_MaxWidth}"
                            TextWrapping="Wrap"
                            TextAlignment="Center"
                            Text="{Binding Subtext, Converter={StaticResource A_StringToUpper}}"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
