<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_OnlineFriendList"
      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}">
            <ContentControl x:Name="DefaultHelpPanel"
				    local:ControllerButtonPanel.ADescription="{local:Loc HelpButtons.IDS_Select}"
				    local:ControllerButtonPanel.BDescription="{local:Loc HelpButtons.IDS_Back}"
				    Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </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}"
                                                     ShowCar="False"
                                                     ShowCarClass="False"
                                                     ShowVoice="False"
                                                     ShowPlayerIcon="True"
                                                     ShowStatus="True"
                                                     ForceSelection="True"
                                                     Style="{StaticResource A_Style_PlayerListControl_Default}"/>
                            <Control Style="{StaticResource A_Leaderboard_Participants_Counter_Bar}"/>
                        </StackPanel>
                    </StackPanel>

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