<Page DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}"
      mc:Ignorable="d"
      x:Class="ForzaUI.A_EliminatorAnnouncement"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="clr-namespace:ForzaUI;assembly="
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      x:Name="Page">

    <Page.Resources>
        <Style x:Key="A_Style_FZRun_TextColor_HIGHLIGHT" TargetType="local:FZRun">
            <Setter Property="Color" Value="#FFFFB600"/>
        </Style>
        <Style x:Key="A_Style_FZTextBlock_TextLine_Base" TargetType="local:FZTextBlock">
            <Setter Property="Color" Value="{StaticResource A_Color_White}"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_DefaultHud}"/>
        </Style>
        <Style x:Key="A_Style_FZTextBlock_FirstLine" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_TextLine_Base}">
            <Setter Property="CapHeight" Value="40"/>
            <Setter Property="FontFamily" Value="Horizon_A"/>
        </Style>
        <Style x:Key="A_Style_FZTextBlock_SecondLine" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_TextLine_Base}">
            <Setter Property="CapHeight" Value="90"/>
        </Style>

        <MappingConverter x:Key="A_MarkupConverter_ExtremeBottomLine">
            <MappingConverterEntry Key="{NoCase YELLOW}" Value="{StaticResource A_Style_FZRun_TextColor_HIGHLIGHT}"/>
        </MappingConverter>

        <Style x:Key="A_Style_FZTextBlock_ExtremeBottomLine" TargetType="local:FZTextBlock"
               BasedOn="{StaticResource A_Style_FZTextBlock_TextLine_Base}">
            <Setter Property="CapHeight" Value="42"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="FontFamily"  Value="Horizon_B" />
            <Setter Property="LineAdjust"  Value="-0.45" />
            <Setter Property="MarkupConverter" Value="{StaticResource A_MarkupConverter_ExtremeBottomLine}"/>
            <Setter Property="Text" Value="{Binding ExtremeBottomLine, Converter={StaticResource A_StringToUpper}}" />
        </Style>

        <local:MappingConverter x:Key="A_Converter_AnnouncementContext_To_ImagePath">
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.PreGameHider}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/hider_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.PreGameSeeker}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/seeker_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictoryHider}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/hider_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictorySeeker}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/seeker_backing.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_AnnouncementContext_To_PillColor">
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictoryHider}" Value="#FF9D00"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictorySeeker}" Value="#D500F4"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_AnnouncementContext_To_ImagePath">
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.PreGameHider}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/hider_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.PreGameSeeker}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/seeker_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictoryHider}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/hider_backing.png"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictorySeeker}" Value="/ForzaUI;component/Textures/Data_Bound/Hide_Seek/Announcement/seeker_backing.png"/>
        </local:MappingConverter>

        <local:MappingConverter x:Key="A_Converter_AnnouncementContext_To_IsPreGameContext" Default="{StaticResource A_Boolean_True}">
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictoryHider}" Value="{StaticResource A_Boolean_False}"/>
            <local:MappingConverterEntry Key="{x:Static local:HideSeekAnnouncementContext.VictorySeeker}" Value="{StaticResource A_Boolean_False}"/>
        </local:MappingConverter>

        <MultiConverter x:Key="H_Converter_AnnouncementContext_VisibleIfPreGame">
            <MultiConverterEntry Converter="{StaticResource A_Converter_AnnouncementContext_To_IsPreGameContext}"/>
            <MultiConverterEntry>
                <MultiConverterEntry.Converter>
                    <MappingConverter Default="{Static Visibility.Collapsed}">
                        <MappingConverterEntry Key="{StaticResource A_Boolean_True}" Value="{Static Visibility.Visible}" />
                    </MappingConverter>
                </MultiConverterEntry.Converter>
            </MultiConverterEntry>
        </MultiConverter>

        <MultiConverter x:Key="H_Converter_AnnouncementContext_VisibleIfPreGame_Inverse">
            <MultiConverterEntry Converter="{StaticResource A_Converter_AnnouncementContext_To_IsPreGameContext}"/>
            <MultiConverterEntry>
                <MultiConverterEntry.Converter>
                    <MappingConverter Default="{Static Visibility.Collapsed}">
                        <MappingConverterEntry Key="{StaticResource A_Boolean_False}" Value="{Static Visibility.Visible}" />
                    </MappingConverter>
                </MultiConverterEntry.Converter>
            </MultiConverterEntry>
        </MultiConverter>

        <Style x:Key="A_Style_ItemContainerStyle"
               TargetType="{Type FrameworkElement}">
            <Setter Property="Margin" Value="22,20" />
            <Setter Property="Width" Value="520" />
            <Setter Property="Height" Value="40" />
            <Style.Triggers>
                <DataTrigger Binding="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}}" 
                 Value="{x:Static local:HideSeekAnnouncementContext.VictoryHider}">
                    <Setter Property="Margin" Value="0" />
                    <Setter Property="Width" Value="538" />
                    <Setter Property="Height" Value="45" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <Style x:Key="A_Style_ItemsPanelStyle" TargetType="{Type UniformGrid}">
            <Setter Property="Columns" Value="3"/>
            <Setter Property="Rows" Value="2"/>
            <Style.Triggers>
                <DataTrigger Binding="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}}" 
                             Value="{x:Static local:HideSeekAnnouncementContext.VictoryHider}">
                    <Setter Property="Columns" Value="1"/>
                    <Setter Property="Rows" Value="1"/>
                    <Setter Property="Margin" Value="70,0,0,0" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_Begin"
                             KeyTime="0:0:0" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_Land"
                             KeyTime="0:0:0.36" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_Slide_End"
                             KeyTime="0:0:5" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_Fade_End"
                             KeyTime="{StaticResource A_KeyTime_Announcement_Slide_End}"
                             Offset="-0:0:1.0" />
        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_Fade_Start"
                             KeyTime="{StaticResource A_KeyTime_Announcement_Fade_End}"
                             Offset="-0:0:0.3"/>

        <local:UIStoryboard x:Key="A_Storyboard_FadeOut" FillBehavior="HoldEnd" >
            <!-- Fade off -->
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TopLine"
                                           Storyboard.TargetProperty="Opacity">
                <EasingDoubleKeyFrame Value="0"  KeyTime="0:0:0.15"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BottomLine"
                                           Storyboard.TargetProperty="Opacity">
                <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.15"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExtremeBottomLine"
                                           Storyboard.TargetProperty="Opacity">
                <EasingDoubleKeyFrame Value="0" KeyTime="0:0:0.15"
                                      EasingFunction="{local:LinearEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent EventName="FadeOutComplete" local:TriggerAnimation.KeyTime="0:0:0.15"/>
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:OffsetKeyTime x:Key="A_KeyTime_Announcement_BackgroundFade_Start"
                             Offset="0:0:0.14"
                             KeyTime="{StaticResource A_KeyTime_Announcement_Land}"/>

        <local:UIStoryboard x:Key="A_Storyboard_FadeIn" FillBehavior="HoldEnd">
            <!-- Fade on-->
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TopLine"
                                           Storyboard.TargetProperty="Opacity">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="1"
                                      EasingFunction="{local:LinearEasing}" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Fade_Start}"
                                        Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BottomLine"
                                           Storyboard.TargetProperty="Opacity">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="1"
                                      EasingFunction="{local:LinearEasing}" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Fade_Start}"
                                        Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExtremeBottomLine"
                                           Storyboard.TargetProperty="Opacity">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="0" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="0" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="1"
                                      EasingFunction="{local:LinearEasing}" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Fade_Start}"
                                        Value="1" />
            </DoubleAnimationUsingKeyFrames>
            <local:UIStoryboard.TriggerAnimation>
                <local:RaiseFzEvent local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Announcement_Fade_Start}"
                                    EventName="AnnouncementReadyToExit" />
            </local:UIStoryboard.TriggerAnimation>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_AnimationUsingKeyFrames_Whoosh">
            <!-- Whoosh -->
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TopLine"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="2000" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="2000" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="70"
                                      EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BottomLine"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="2000" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="2000" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="50"
                                      EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExtremeBottomLine"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                        Value="-2000" />
                <DiscreteDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                        Value="-2000" />
                <EasingDoubleKeyFrame KeyTime="{StaticResource A_KeyTime_Announcement_Land}"
                                      Value="30"
                                      EasingFunction="{local:QuadraticEasing EasingMode=EaseInOut}" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <local:UIStoryboard x:Key="A_Storyboard_Animate_GameText_Common">
            <StaticResourceExtension ResourceKey="A_Storyboard_AnimationUsingKeyFrames_Whoosh"/>

            <!-- Slide -->
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TopLine"
                                           IsAdditive="True"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <EasingDoubleKeyFrame Value="-60" KeyTime="{StaticResource A_KeyTime_Announcement_Slide_End}"
                                      EasingFunction="{local:CubicEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="BottomLine"
                                           IsAdditive="True"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <EasingDoubleKeyFrame Value="-2" KeyTime="{StaticResource A_KeyTime_Announcement_Slide_End}"
                                      EasingFunction="{local:CubicEasing}" />
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExtremeBottomLine"
                                           IsAdditive="True"
                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)">
                <EasingDoubleKeyFrame Value="60" KeyTime="{StaticResource A_KeyTime_Announcement_Slide_End}"
                                      EasingFunction="{local:CubicEasing}" />
            </DoubleAnimationUsingKeyFrames>
        </local:UIStoryboard>

        <Style x:Key="A_Style_Audio_Context_Triggers" TargetType="FrameworkElement">
            <Style.Triggers>
                <DataTrigger Binding="{Binding AnnouncementAudio, RelativeSource={RelativeSource AncestorType=Page}}" Value="{x:Static local:InGameAnnouncementSound.Standard}">
                    <DataTrigger.EnterActions>
                        <local:StartAudioTrigger local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                                 EventName="UI_OnlineEvents_Go"/>
                    </DataTrigger.EnterActions>
                </DataTrigger>

                <DataTrigger Binding="{Binding AnnouncementAudio, RelativeSource={RelativeSource AncestorType=Page}}" Value="{x:Static local:InGameAnnouncementSound.Victory}">
                    <DataTrigger.EnterActions>
                        <local:StartAudioTrigger local:TriggerAnimation.KeyTime="{StaticResource A_KeyTime_Announcement_Begin}"
                                                 EventName="AudioUITrigger_ELM_Versus_H2H_Win"/>
                    </DataTrigger.EnterActions>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </Page.Resources>
    <Grid>
         <ContentControl Style="{StaticResource A_Style_ButtonBar}"
                        x:Name="BottomBar">
            <local:ControllerButtonPanel x:Name="PART_HelpPanel"
                                         Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <local:ControllerButtonControl Button="A"
                                               Description="{Binding PrimaryDescription}" />
                <local:ControllerButtonControl Button="B"
                                               Description="{Binding SecondaryDescription}" />
                <local:ControllerButtonControl Button="X"
                                               Description="{Binding TertiaryDescription}" />
            </local:ControllerButtonPanel>
        </ContentControl>

        <local:PageInputHandler Button="{x:Static local:ControllerButtonType.A}"
                                Command="{Binding PrimaryCommand}" />
        <local:PageInputHandler Button="{x:Static local:ControllerButtonType.B}"
                                Command="{Binding SecondaryCommand}" />
        <local:PageInputHandler Button="{x:Static local:ControllerButtonType.X}"
                                Command="{Binding TertiaryCommand}" />

        <Grid x:Name="LayoutRoot" Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <local:FZMaterial Width="1920" Height="460"
                              ImageSource="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page},Converter={StaticResource A_Converter_AnnouncementContext_To_ImagePath}}"/>
            <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
                <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                    <Decorator x:Name="TopLine"
                               Margin="70,0,0,0"
                               Effect="{StaticResource A_MotionBlurEffect}"
                               local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                               Opacity="1">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>
                        <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_FirstLine}" 
                                           Text="{Binding TopLine}"/>
                    </Decorator>
                    <Decorator Height="19" />
                    <Decorator x:Name="BottomLine"
                               Effect="{StaticResource A_MotionBlurEffect}"
                               local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                               RenderTransformOrigin="0.5,0.5"
                               Opacity="1">
                        <UIElement.RenderTransform>
                            <TranslateTransform />
                        </UIElement.RenderTransform>

                        <Decorator>
                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_SecondLine}" 
                                               Text="{Binding BottomLine}" />
                        </Decorator>
                    </Decorator>
                    <Decorator Height="29" Visibility="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource H_Converter_AnnouncementContext_VisibleIfPreGame}}" />
                    <Decorator Height="21" Visibility="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource H_Converter_AnnouncementContext_VisibleIfPreGame_Inverse}}" />
                    <FZMaterialGlassCapture />
                    <Grid>
                        <Decorator x:Name="ExtremeBottomLine"
                                   Effect="{StaticResource A_MotionBlurEffect}"
                                   local:MotionBlurEffect.MotionBlurPositionXControl="{Binding RenderTransform.X, RelativeSource={RelativeSource Self}}"
                                   RenderTransformOrigin="0.5,0.5"
                                   Margin="-60,0,0,0"
                                   Opacity="1"
                                   Visibility="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource H_Converter_AnnouncementContext_VisibleIfPreGame}}">
                            <UIElement.RenderTransform>
                                <TranslateTransform />
                            </UIElement.RenderTransform>
                            <Decorator>
                                <local:FZTextBlock MaxWidth="750" 
                                                   Style="{StaticResource A_Style_FZTextBlock_ExtremeBottomLine}"/>
                            </Decorator>
                        </Decorator>
                        <Decorator>
                            <ItemsControl ItemsSource="{Binding WinningProfiles}"
                                          ItemContainerStyle="{StaticResource A_Style_ItemContainerStyle}"
                                          HorizontalAlignment="Center"
                                          Visibility="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource H_Converter_AnnouncementContext_VisibleIfPreGame_Inverse}}">
                                <ItemsControl.Resources>
                                    <Style x:Key="H_Style_FZMaterial_Player_Outline" TargetType="FZMaterial">
                                        <Setter Property="Color" Value="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_Converter_AnnouncementContext_To_PillColor}}" />
                                    </Style>
                                    <MappingConverter x:Key="A_Converter_AnnouncementContext_To_BlankRaceUserProfile_Visibility" Default="{Static Visibility.Collapsed}">
                                        <MappingConverterEntry Key="{x:Static HideSeekAnnouncementContext.VictoryHider}" Value="{Static Visibility.Collapsed}"/>
                                        <MappingConverterEntry Key="{x:Static HideSeekAnnouncementContext.VictorySeeker}" Value="{Static Visibility.Visible}"/>
                                    </MappingConverter>
                                    <Style x:Key="H_Style_ContentControl_BlankRaceUserProfile" TargetType="ContentControl"
                                        BasedOn="{StaticResource A_Style_ItemContainerStyle}">
                                        <Setter Property="ContentTemplate" Value="{StaticResource H_DataTemplate_PostRaceUserProfile}"/>
                                        <Setter Property="Visibility" Value="{Binding AnnouncementContext, RelativeSource={RelativeSource AncestorType=Page}, Converter={StaticResource A_Converter_AnnouncementContext_To_BlankRaceUserProfile_Visibility}}"/>
                                    </Style>
                                </ItemsControl.Resources>
                                <ItemsControl.Template>
                                    <ControlTemplate TargetType="{Type ItemsControl}">
                                        <Grid>
                                            <Decorator Style="{StaticResource A_Style_FrameworkElement_SlideRightToLeftTransition_1}">
                                                <Grid>
                                                    <UniformGrid Style="{StaticResource A_Style_ItemsPanelStyle}">
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                        <ContentControl Style="{StaticResource H_Style_ContentControl_BlankRaceUserProfile}"/>
                                                    </UniformGrid>
                                                    <ItemsPresenter/>
                                                </Grid>
                                            </Decorator>
                                        </Grid>
                                    </ControlTemplate>
                                </ItemsControl.Template> 
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <UniformGrid Style="{StaticResource A_Style_ItemsPanelStyle}"/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <ContentControl
                                            Content="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}}"
                                            ContentTemplate="{StaticResource H_DataTemplate_PostRaceUserProfile}"/> 
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>
                            </ItemsControl>
                        </Decorator>
                    </Grid>
                </StackPanel>
            </Grid>
        </Grid>
        <FrameworkElement Style="{StaticResource A_Style_Audio_Context_Triggers}"/>
    </Grid>
    <local:EventFire.FzTriggers>
        <local:BeginUIStoryboard local:EventFireTrigger.Event="Hide_FadeOut" Storyboard="{StaticResource A_Storyboard_FadeOut}"/>
        
    </local:EventFire.FzTriggers>

    <FrameworkElement.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_FadeIn}" />
            <local:BeginUIStoryboard Storyboard="{StaticResource A_Storyboard_Animate_GameText_Common}"/>
        </EventTrigger>
    </FrameworkElement.Triggers>
</Page>
