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

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_Menu}"/>
    </local:UIPageTransitionManager.TransitionManager>

    <Page.Resources>
        <ResourceDictionary>
            <!-- Colors -->
            <Color x:Key="A_Color_DarkPanelBackground">#99323a41</Color>

            <!-- Brushes -->
            <SolidColorBrush x:Key="A_Brush_DarkPanelBackground"
                             Color="{StaticResource A_Color_DarkPanelBackground}" />

            <!-- Misc Values -->
            <System:Double x:Key="A_TeamTotal_Width">360</System:Double>

            <Style x:Key="A_Style_FZRun_TeamPoints_Unit" TargetType="local:FZRun">
                <Setter Property="FontSize" Value="50" />
            </Style>
                    
            <CornerRadius x:Key="A_CornerRadius_TeamDisplay">4</CornerRadius>
            <local:FZMaterialPresetRoundtangle x:Key="A_FZMaterialPresetRoundtangle_TeamPanel_OuterAll"
                BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                CornerRadius="{StaticResource A_CornerRadius_TeamDisplay}"/>

            <local:FZMaterialPresetGlassRoundtangle x:Key="A_FZMaterialPresetGlassRoundtangle_Glass_TeamPanel_OuterAll"
                BasedOn="{StaticResource A_FZMaterialPresetGlassRoundtangle_GlassPanel_Base}"
                CornerRadius="{StaticResource A_CornerRadius_TeamDisplay}"/>
            
            <Size x:Key="A_Size_PlayerImage_GamerPicSizeParams">114,120</Size>
            <Size x:Key="A_Size_TeamImage_GamerPicSizeParams">342,342</Size>
            
            <Style x:Key="A_Style_FZMaterial_Team_Image" TargetType="local:FZMaterial">
                <Setter Property="Height" Value="240" />
                <Setter Property="Width" Value="342" />
            </Style>

            <Style x:Key="A_Style_Control_Profile_Icon_Loading_Spinner" TargetType="Control">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Control">
                            <Grid Width="114" Height="120">
                                <ProgressBar VerticalAlignment="Center" HorizontalAlignment="Center"
                                             Style="{StaticResource A_Style_Progressbar_Loading_SmallSpinner}" Margin="0"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="A_Style_ListBoxItem_TeamMate_Gamerpic" TargetType="ListBoxItem">
                <Setter Property="Height" Value="120" />
                <Setter Property="Width" Value="114" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ListBoxItem">
                            <Grid>
                                <Control Style="{StaticResource A_Style_Control_Profile_Icon_Loading_Spinner}"/>
                                <local:FZMaterial Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                    ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicOrTeamProfileConverter}, ConverterParameter={StaticResource A_Size_PlayerImage_GamerPicSizeParams}}" />
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>

            <Style x:Key="A_Style_CommonListBox_TeamPlayerImages" TargetType="local:CommonListBox">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="local:CommonListBox">
                            <WrapPanel IsItemsHost="True" />
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="ItemContainerStyle" Value="{StaticResource A_Style_ListBoxItem_TeamMate_Gamerpic}" />
            </Style>

            <ControlTemplate x:Key="A_ControlTemplate_TeamPlayerImages">
                <Grid>
                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_TeamPanel_OuterAll}" CaptureSubgraph="True">
                        <local:CommonListBox Style="{StaticResource A_Style_CommonListBox_TeamPlayerImages}"
                                             ClipToBounds="True" ItemsSource="{Binding}" />
                    </local:FZMaterial>
                </Grid>
            </ControlTemplate>
            
            <Style x:Key="A_Style_Control_PlayerImages" TargetType="Control">
                <Setter Property="Width" Value="342"/>
                <Setter Property="Height" Value="240"/>
                <Setter Property="Template" Value="{StaticResource A_ControlTemplate_TeamPlayerImages}"/>
            </Style>
            
            <ControlTemplate x:Key="A_ControlTemplate_TeamImage">
                <Grid>
                    <Grid>
                        <ProgressBar VerticalAlignment="Center" HorizontalAlignment="Center"
                                     Style="{StaticResource A_Style_Progressbar_Loading_SmallSpinner}" Margin="0"/>
                    </Grid>
                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetRoundtangle_TeamPanel_OuterAll}"
                        CaptureSubgraph="True">
                        <local:FZMaterial ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicOrTeamProfileConverter}, ConverterParameter={StaticResource A_Size_TeamImage_GamerPicSizeParams}, FallbackValue={StaticResource A_BitmapImage_GamerPicFallback}}"
                                      DataContext="{Binding CurrentItem}"
                                      Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                      Style="{StaticResource A_Style_FZMaterial_Team_Image}"
                                      Stretch="UniformToFill"
                                      HorizontalAlignment="Center"
                                      VerticalAlignment="Center"
                                      Width="342"
                                      Height="342"
                                      GreedyMeasure="True"
                                      ClipToBounds="True" />
                    </local:FZMaterial>
                </Grid>
            </ControlTemplate>
            
            <Style x:Key="A_Style_Control_TeamImage" TargetType="Control">
                <Setter Property="Width" Value="342"/>
                <Setter Property="Height" Value="240"/>
                <Setter Property="Template" Value="{StaticResource A_ControlTemplate_TeamImage}"/>
            </Style>
                        
            <Style x:Key="A_Style_FZRun_Score_BOLD"
                   TargetType="local:FZRun">
                <Setter Property="FontFamily"
                        Value="Horizon_A" />
                <Setter Property="FontSize" Value="80"/>
            </Style>

             <Style x:Key="A_FZTextBlock_Style_Team_Points" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HeaderBlock}">
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_Style_FZRun_Score_"/>
                <Setter Property="FontFamily" Value="Horizon_B"/>
                <Setter Property="CapHeight" Value="54"/>
            </Style>

            <System:Double x:Key="A_Double_TeamWinCondition_LineHeight">30</System:Double>
            <System:Double x:Key="A_Double_TeamWinCondition_LineHeight_JP">42</System:Double>
            <System:Double x:Key="A_Double_TeamWinCondition_LineHeight_CHS">42</System:Double>
            <System:Double x:Key="A_Double_TeamWinCondition_LineHeight_CHT">42</System:Double>
            <System:Double x:Key="A_Double_TeamWinCondition_LineHeight_PL">38</System:Double>
            <Style x:Key="A_FZTextBlock_Style_Team_Event" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HeaderBlock}">
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_Style_FZRun_Score_"/>
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="LineHeight" Value="{local:LocalizedResource A_Double_TeamWinCondition_LineHeight}"/>
                <Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
                <Setter Property="TextAlignment" Value="Center"/>
                <Setter Property="CapHeight" Value="25"/>
            </Style>

            <Style x:Key="A_FZTextBlock_Style_Team_Infected" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_FZTextBlock_Style_Team_Event}"/>
            <Style x:Key="A_FZTextBlock_Style_Team_King" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_FZTextBlock_Style_Team_Event}" />
            <Style x:Key="A_FZTextBlock_Style_Team_FlagRush" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_FZTextBlock_Style_Team_Event}" />
                                    
            <local:MappingConverter x:Key="A_Converter_EventNameToTeamScoreStyle" Default="{StaticResource A_FZTextBlock_Style_Team_Points}">
                <local:MappingConverterEntry Key="{x:Static local:UIRacificationMode.TeamInfected}" Value="{StaticResource A_FZTextBlock_Style_Team_Infected}"/>
                <local:MappingConverterEntry Key="{x:Static local:UIRacificationMode.TeamKing}" Value="{StaticResource A_FZTextBlock_Style_Team_King}"/>
                <local:MappingConverterEntry Key="{x:Static local:UIRacificationMode.TeamFlagRush}" Value="{StaticResource A_FZTextBlock_Style_Team_FlagRush}"/>
            </local:MappingConverter>
            
            <local:MappingConverter x:Key="A_Converter_TeamIdToTintColor" Default="#00000000">
                <local:MappingConverterEntry Key="0" Value="{StaticResource A_Color_TeamA_Score_TintColor}"/>
                <local:MappingConverterEntry Key="1" Value="{StaticResource A_Color_TeamB_Score_TintColor}"/>
            </local:MappingConverter>
            
            <ControlTemplate x:Key="A_ControlTemplate_Player_Panel" TargetType="ContentControl">
                <Grid>
                    <Control Style="{StaticResource A_Style_Control_PlayerImages}"
                             Visibility="{Binding DataContext.IsTeamFullClubTeam, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}"
                             DataContext="{Binding TeamView}"/>
                    <Control Style="{StaticResource A_Style_Control_TeamImage}"
                             Visibility="{Binding DataContext.IsTeamFullClubTeam, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource A_FZBooleanToVisibilityConverter}, FallbackValue=Collapsed}"
                             DataContext="{Binding TeamView}"/>
                    <local:FZMaterial Color="{Binding TeamId, Converter={StaticResource A_Converter_TeamIdToTintColor}}"
                                      Style="{StaticResource A_Style_FZMaterial_Team_Image}"
                                      Preset="{StaticResource A_FZMaterialPresetRoundtangle_TeamPanel_OuterAll}"/>
                    <local:FZTextBlock VerticalAlignment="Center" HorizontalAlignment="Center"
                                       local:TextBlockInlineMarkup.Markup="{Binding Score}"
                                       Style="{Binding EventViewModel.EventType, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}, Converter={StaticResource A_Converter_EventNameToTeamScoreStyle}}"
                                       Color="{StaticResource A_Color_SubHeader_Text}" />
                </Grid>
            </ControlTemplate>
                
            <Style x:Key="A_Style_Control_TeamTotal" TargetType="{x:Type Control}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="3" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <!--Teams are always ordered Red then Blue regardless of winning order-->
                                <local:FZMaterial Color="{StaticResource A_Color_TeamA_Score_Background}" Grid.Row="0" Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                                    <DockPanel Margin="6">
                                        <Decorator DockPanel.Dock="Bottom" Height="50">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderBlock}" VerticalAlignment="Center"
                                                               Color="{StaticResource A_Color_SubHeader_Text}" CapHeight="22" Margin="12,12,12,6"
                                                               Text="{Binding EventViewModel.TeamA.TeamName, Converter={StaticResource A_StringToUpper}}"/>
                                        </Decorator>
                                        <ContentControl Template="{StaticResource A_ControlTemplate_Player_Panel}"
                                                        DataContext="{Binding EventViewModel.TeamA}"/>
                                    </DockPanel>
                                </local:FZMaterial>
                                <local:FZMaterial Color="{StaticResource A_Color_TeamB_Score_Background}" Grid.Row="2" Style="{StaticResource A_Style_FZMaterial_FlatPanel_Tile}">
                                    <DockPanel Margin="6">
                                        <Decorator DockPanel.Dock="Bottom" Height="50">
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HeaderBlock}" VerticalAlignment="Center"
                                                               Color="{StaticResource A_Color_SubHeader_Text}" CapHeight="22" Margin="12,12,12,6"
                                                               Text="{Binding EventViewModel.TeamB.TeamName, Converter={StaticResource A_StringToUpper}}"/>
                                        </Decorator>
                                        <ContentControl Template="{StaticResource A_ControlTemplate_Player_Panel}" 
                                                        DataContext="{Binding EventViewModel.TeamB}"/>
                                    </DockPanel>
                                </local:FZMaterial>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
                        
            <Style x:Key="A_Style_FZTextBlock_MVP"
                   TargetType="{x:Type local:FZTextBlock}"
                   BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="Color" Value="{StaticResource A_Color_SubHeader_Text}"/>
            </Style>
            
            <System:Double x:Key="A_Double_InstructionBox_MaxContentWidth">330</System:Double>

            <Style x:Key="A_Style_FZTextBlock_EventResults_Instruction" TargetType="local:FZTextBlock" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}" >
                <Setter Property="FontSize" Value="42"/>
                <Setter Property="TextWrapping" Value="WrapWithOverflow"/>
                <Setter Property="Color" Value="{StaticResource A_Color_SubHeader_Text}"/>
                <Setter Property="Margin" Value="20"/>
                <Setter Property="HorizontalAlignment" Value="Center" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="TextAlignment" Value="Center" />
                <Setter Property="local:TextBlockInlineMarkup.ResourceBaseName" Value="A_Style_FZRun_EventResults_" />
                <Setter Property="Width" Value="{StaticResource A_Double_InstructionBox_MaxContentWidth}" />
            </Style>

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

            <!-- Visual State Storyboards -->
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayer">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowBestLap)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayer_Playthrough">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowBestLap)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerIEHeat">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerP2P">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerP2P_Playthrough">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerShowcase">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True" />
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerStandings">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosDelta)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPoints)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            
            <Storyboard x:Key="A_Storyboard_VisualState_SinglePlayerFinal">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayer">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowBestLap)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerPlaythrough">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowBestLap)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerP2P">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerStandings">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosDelta)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTotalXP)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerTeam">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTeams)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerInfected">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowInfected)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerTeamInfected">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowInfected)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTeams)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                    Storyboard.TargetName="PART_PlayerList"
                                    Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerKing">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowKing)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                        Storyboard.TargetName="PART_PlayerList"
                        Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerTeamKing">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowKing)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                            Storyboard.TargetName="PART_PlayerList"
                                            Storyboard.TargetProperty="(local:PlayerListControl.ShowTeams)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                            Storyboard.TargetName="PART_PlayerList"
                                            Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerFlagRush">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowFlagRush)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                    Storyboard.TargetName="PART_PlayerList"
                                    Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerTeamFlagRush">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Visible}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowScore)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowFlagRush)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPlayerIcon)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTeams)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                    Storyboard.TargetName="PART_PlayerList"
                                    Storyboard.TargetProperty="(local:PlayerListControl.ShowFinishedStatus)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="False"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>
            
            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerWagerRace">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowWagerWinnings)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="A_Storyboard_VisualState_MultiPlayerShowcase">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowProgress)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTime)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowTeams)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>

            <!--<Style x:Key="A_Style_Infected" TargetType="local:PlayerListControl" BasedOn="{StaticResource A_Style_PlayerListControl_Default}">
                <Style.Resources>
                    <Style x:Key="A_Style_ColumnDefinition_Class" TargetType="{x:Type ColumnDefinition}">
                        <Setter Property="Width" Value="153"/>
                    </Style>
                </Style.Resources>

                <Setter Property="ShowInfected" Value="True"/>
                <Setter Property="ShowPlayerIcon" Value="True"/>
                <Setter Property="ShowPosition" Value="False"/>
            </Style>-->

            <Storyboard x:Key="A_Storyboard_VisualState_DriftRunRace">
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="TeamTotalsGrid"
                                               Storyboard.TargetProperty="(UIElement.Visibility)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Static Visibility.Collapsed}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.ADescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.XDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <ObjectAnimationUsingKeyFrames Duration="0:0:0"
                                               Storyboard.TargetName="DefaultHelpPanel"
                                               Storyboard.TargetProperty="(local:ControllerButtonPanel.YDescription)">
                    <DiscreteObjectKeyFrame KeyTime="0:0:0"
                                            Value="{x:Null}" />
                </ObjectAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPosition)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowVoice)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
                <BooleanAnimationUsingKeyFrames Duration="0:0:0.0"
                                                Storyboard.TargetName="PART_PlayerList"
                                                Storyboard.TargetProperty="(local:PlayerListControl.ShowPoints)">
                    <DiscreteBooleanKeyFrame KeyTime="0:0:0.0"
                                             Value="True"/>
                </BooleanAnimationUsingKeyFrames>
            </Storyboard>


        </ResourceDictionary>
    </Page.Resources>

    <Grid x:Name="LayoutRoot">
        <VisualStateManager.VisualStateGroups>
                <VisualStateGroup>
                    <VisualState x:Name="VisualState_SinglePlayer"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayer}" />
                    <VisualState x:Name="VisualState_SinglePlayer_Playthrough"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayer_Playthrough}" />
                    <VisualState x:Name="VisualState_SinglePlayerP2P"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerP2P}" />
                    <VisualState x:Name="VisualState_SinglePlayerP2P_Playthrough"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerP2P_Playthrough}" />
                    <VisualState x:Name="VisualState_SinglePlayerShowcase"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerShowcase}" />
                    <VisualState x:Name="VisualState_SinglePlayerStandings"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerStandings}" />
                    <VisualState x:Name="VisualState_SinglePlayerFinal"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerFinal}" />
                    <VisualState x:Name="VisualState_MultiPlayer"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayer}" />
                    <VisualState x:Name="VisualState_MultiPlayerPlaythrough"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerPlaythrough}" />
                    <VisualState x:Name="VisualState_MultiPlayerP2P"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerP2P}" />
                    <VisualState x:Name="VisualState_SinglePlayerIEHeat"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_SinglePlayerIEHeat}" />
                    <VisualState x:Name="VisualState_MultiPlayerStandings"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerStandings}" />
                    <VisualState x:Name="VisualState_MultiPlayerTeam"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerTeam}" />
                    <VisualState x:Name="VisualState_MultiPlayerTeamInfected"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerTeamInfected}" />
                    <VisualState x:Name="VisualState_MultiPlayerInfected"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerInfected}" />
                    <VisualState x:Name="VisualState_MultiPlayerTeamKing"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerTeamKing}" />
                    <VisualState x:Name="VisualState_MultiPlayerKing"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerKing}" />
                    <VisualState x:Name="VisualState_MultiPlayerTeamFlagRush"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerTeamFlagRush}" />
                    <VisualState x:Name="VisualState_MultiPlayerFlagRush"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerFlagRush}" />
                    <VisualState x:Name="VisualState_MultiPlayerWagerRace"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerWagerRace}" />
                    <VisualState x:Name="VisualState_MultiPlayerShowcase"
                                 Storyboard="{StaticResource A_Storyboard_VisualState_MultiPlayerShowcase}" />
                    <VisualState x:Name="VisualState_DriftRun"
                                         Storyboard="{StaticResource A_Storyboard_VisualState_DriftRunRace}" />
            </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>

        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl x:Name="DefaultHelpPanel"
                    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Continue}"
                    local:ControllerButtonPanel.XDescription="{local:Loc HelpButtons.IDS_Restart}"
                    local:ControllerButtonPanel.YDescription="{local:Loc HelpButtons.IDS_WatchReplay}"
                    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>

        <Border Style="{StaticResource A_Style_Border_ScenePadding}"
                UseLayoutRounding="True">
            <Grid>
                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,50">
                    <StackPanel Orientation="Vertical"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Center">
                        <Grid Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}" HorizontalAlignment="Left">
                            <ContentControl x:Name="eventResultsTextBlock"
                                        Tag="{Binding EventViewModel.EventName}"
                                        Content="{Binding EventViewModel.EventClass, Converter={StaticResource A_StringToUpper}}"
                                        Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}"
                                        local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/Leaderboards.png"/>
                        </Grid>

                        <StackPanel Orientation="Horizontal" Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_1}">

                            <local:PlayerListControl x:Name="PART_PlayerList" local:ZPanel.ZIndex="1" Style="{StaticResource A_Style_PlayerListControl_Default}"
                                                     ShowFinishedStatus="True" ShowAdventureRank="{Binding ShowRankData, RelativeSource={RelativeSource FindAncestor, AncestorType=Page}}"
                                                     DataContext="{Binding EventViewModel.Participants}"/>

                            <!-- Instructional Panel -->
                            <Decorator Style="{StaticResource A_Style_FrameworkElement_MultiplayerGrid_InstructionalPanel}">
                                <DockPanel x:Name="InstructionPanel"
                                        Style="{StaticResource A_Style_DockPanel_MultiplayerGrid_InstructionalPanel}">
                                    <ContentControl DockPanel.Dock="Top" Content="{Binding InstructionTitle}" Style="{StaticResource A_Style_DescriptionPanelHeader}" Margin="0,0,0,3" Height="80"/>
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="200" />
                                            <RowDefinition Height="*" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>

                                        <Grid Grid.Row="0" Margin="0,0,0,3">
                                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_InstructionPanelBackground}" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventResults_Instruction}"
                                                                local:TextBlockInlineMarkup.Markup="{Binding Instruction1}" />
                                        </Grid>
                                        <Grid Grid.Row="1" Margin="0,0,0,3">
                                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_InstructionPanelBackground}" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventResults_Instruction}"
                                                                local:TextBlockInlineMarkup.Markup="{Binding Instruction2}" />
                                        </Grid>
                                        <Grid Grid.Row="2">
                                            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_InstructionPanelBackground}" />
                                            <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_EventResults_Instruction}"
                                                                local:TextBlockInlineMarkup.Markup="{Binding Instruction3}" />
                                        </Grid>
                                    </Grid>
                                </DockPanel>
                            </Decorator>

                            <!-- Team Totals -->
                            <DockPanel x:Name="TeamTotalsGrid" Margin="6,0,0,0" Width="{StaticResource A_TeamTotal_Width}">
                                <local:FZMaterial DockPanel.Dock="Top"
                                                      Margin="0,0,0,3" Height="48"
                                                      Style="{StaticResource A_Style_FZMaterial_FlatPanel_HeaderPill}">
                                    <local:FZTextBlock  Text="{Binding EventViewModel.EventName, Converter={StaticResource A_StringToUpper}}"
                                                            VerticalAlignment="Center" HorizontalAlignment="Center"
                                                            CapHeight="15" Color="{StaticResource A_Color_Header_Text}"
                                                            Style="{StaticResource A_Style_FZTextBlock_SubTitle}" />
                                </local:FZMaterial>
                                <Control Style="{StaticResource A_Style_Control_TeamTotal}"/>
                            </DockPanel>
                        </StackPanel>
                        <Decorator HorizontalAlignment="Right" Width="360">
                            <local:NetworkCountdownControl Style="{StaticResource A_Style_NetworkCountdownControl_TimeRemaining}" Margin="0,0,0,-60"
                                                               Template="{StaticResource A_ControlTemplate_MultiplayerCountdown}"
                                                               HorizontalAlignment="Stretch"
                                                               CountdownType="LocalForUi"/>
                        </Decorator>
                    </StackPanel>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</Page>
