<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.Scenes.Anthem.A_AdventurePlayerList"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">  
    
    <Page.Resources>
        <ResourceDictionary>
        </ResourceDictionary>
    </Page.Resources>

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

    <Grid>
        <!-- Background Blur -->
		<Control Style="{StaticResource A_Style_Control_ScreenBackground}" />

        <ContentControl x:Name="BottomBar" Style="{StaticResource A_Style_ButtonBar}">
            <local:ControllerButtonPanel x:Name="HelpPanel"
                                        Style="{StaticResource A_Style_ControllerButtonPanel_Default}">
                <local:ControllerButtonControl Button="A"
                                            Description="{local:Loc HelpButtons.IDS_Select}" />
                <local:ControllerButtonControl Button="X"
                                            Description="{local:Loc HelpButtons.IDS_StartAdventure}"/>
                <local:ControllerButtonControl Button="Y"
                                            Description="{local:Loc HelpButtons.IDS_InviteFriends}"/>
                <local:ControllerButtonControl Button="B"
                                            Description="{local:Loc HelpButtons.IDS_Quit}" />
            </local:ControllerButtonPanel>
        </ContentControl>
        
        <Border x:Name="LayoutRoot" Style="{StaticResource A_Style_Border_ScenePadding}">
            <Grid>
                <Grid Style="{StaticResource A_Style_FrameworkElement_ScreenTilt}"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center">
                    <StackPanel>
                        <Grid Style="{StaticResource A_Style_FrameworkElement_DefaultTransition}" 
                              local:UIPageTransitionManager.TransitionIndex="0"
                              Margin="0,0,0,13">
                            <ContentControl Content="{Binding Title}" 
                                            Style="{StaticResource A_Style_ContentControl_ScreenTitleBlock}" 
                                            HorizontalAlignment="Left" 
                                            VerticalAlignment="Top"
                                            local:BindingProxy.A="/ForzaUI;component/Textures/Anthem/Icons/Titles/Leaderboards.png" />
                        </Grid>
                        <StackPanel Style="{StaticResource A_Style_FrameworkElement_DefaultTransition}" 
                                    local:UIPageTransitionManager.TransitionIndex="1">
                            <local:PlayerListControl x:Name="PART_PlayerList"
                                                     DataContext="{Binding EventViewModel.Participants}"
                                                     ShowTeams="True"
                                                     ShowPlayerIcon="True"
                                                     ShowCar="False"
                                                     ShowCarClass="False"
                                                     ShowStatus="True"
                                                     ShowVoice="True"
                                                     ForceSelection="True"
                                                     Style="{StaticResource A_Style_PlayerListControl_Default}"/>
                            <Control Style="{StaticResource A_Leaderboard_Participants_Counter_Bar}"/>
                        </StackPanel>
                    </StackPanel>

                </Grid>
            </Grid>
        </Border>
    </Grid>
</Page>
