<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ForzaUI.A_CreatorInfo"
    Style="{StaticResource A_Style_Page_Generic}"
    DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <UIPageTransitionManager.TransitionManager>
        <UIPageTransitionManager
            Preset="{StaticResource A_UIPageTransitionManagerPreset_Popup}" />
    </UIPageTransitionManager.TransitionManager>
    <Page.Resources>
        <ResourceDictionary>
            <Style
                x:Key="A_Style_Text_Gamertag"
                TargetType="{Type local:FZTextBlock}"
                BasedOn="{StaticResource A_Style_FZTextBlock_HorizonA}">
                <Setter
                    Property="VerticalAlignment"
                    Value="Center" />
                <Setter
                    Property="Color"
                    Value="{StaticResource H_Color_Primary_White}" />
                <Setter
                    Property="CapHeight"
                    Value="27" />
                <Setter
                    Property="FontFamily"
                    Value="Horizon_B" />
                <Setter 
                    Property="ScreenReader.Line"
                    Value="{Binding Text, RelativeSource={RelativeSource Self}}"/>
                <Setter 
                    Property="ScreenReader.LineType"
                    Value="ScreenSubtitle"/>
                <Setter 
                    Property="ScreenReader.Event"
                    Value="OnLoad"/>
            </Style>

            <ControlTemplate x:Key="A_ControlTemplate_PlayerName">
                <StackPanel Orientation="Horizontal" >
                    <FZTextBlock Text="{Binding FormattedClubTag}" Style="{StaticResource A_Style_Text_Gamertag}" Visibility="{Binding FormattedClubTag, Converter={StaticResource A_StringVisConverter}}" VerticalAlignment="Center" Margin="0,0,5,0" />
                    <FZTextBlock Text="{Binding FormattedGamertag}" Style="{StaticResource A_Style_Text_Gamertag}" VerticalAlignment="Center" />
                    <PlayerAdornmentControl Margin="4,0,0,0" BadgeId="{Binding BadgeId}" />
                </StackPanel>
            </ControlTemplate>

        </ResourceDictionary>
    </Page.Resources>
    <Grid>
        <FZMaterialGlassCapture />
        <FZMaterial
            Style="{StaticResource A_Style_FZMaterial_Popup_Background}" />
        <ContentControl
            x:Name="BottomBar"
            Style="{StaticResource A_Style_ButtonBar}">
            <ContentControl
                x:Name="PART_DefaultHelpPanel"
                Style="{StaticResource A_Style_ContentControl_DefaultButtonBar}" />
        </ContentControl>
        <Grid
            Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <StackPanel
                x:Name="MainContent"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Width="{StaticResource A_Double_MessageBox_Width}"
                Style="{StaticResource A_Style_FrameworkElement_DefaultTransition_0}">
                <ContentControl
                    x:Name="LiveryTitle"
                    Content="{Binding Title}"
                    Style="{StaticResource A_Style_ContentControl_PopupTitleBlock}"
                    Width="{StaticResource A_Double_MessageBox_Width}" />
                <ContentControl
                    Style="{StaticResource A_Style_ContentControl_PopupContentBlock}"
                    Tag="/ForzaUI;component/Textures/Anthem/Icons/Titles/PopupSettings.png">
                    <StackPanel
                        Orientation="Vertical">
                        <StackPanel
                            Orientation="Horizontal"
                            VerticalAlignment="Top"
                            Margin="0,0,0,4">
                            <Grid
                                Width="118"
                                Height="118"
                                Margin="24,24,24,24">
                                <FZMaterial
                                    x:Name="GamerPicMaterial"
                                    ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicConverter}, ConverterParameter={StaticResource A_Size_JoinFriendGamerPicSizeParams}}"
                                    Preset="{StaticResource A_FZMaterialPresetRoundtangle_FlatPanel_OuterAll3px}"
                                    Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}" />
                                <ProgressBar
                                    Style="{StaticResource A_Style_ProgressBar_WaitSpinner}"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    Visibility="{Binding Downloaded, ElementName=GamerPicMaterial, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}" />
                            </Grid>
                            <StackPanel
                                Margin="0,0,24,0"
                                VerticalAlignment="Center">
                                <ContentControl 
                                    DataContext="{Binding UserProfile}"  
                                    Visibility="{Binding IsWristbandVisible, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"
                                    Template="{StaticResource A_ControlTemplate_PlayerLevel_WithPrestige}" 
                                    HorizontalAlignment="Left" 
                                    Margin="3,0,0,16"/>
                                <ContentControl DataContext="{Binding UserProfile}" Template="{StaticResource A_ControlTemplate_PlayerName}" HorizontalAlignment="Left" Margin="-4,0,0,0" MaxWidth="380"/>
                            </StackPanel>
                        </StackPanel>
                        <Decorator
                            VerticalAlignment="Bottom" />
                    </StackPanel>
                </ContentControl>
                <CommonListBox
                    x:Name="PART_Menu"
                    Style="{StaticResource A_Style_ListBox_TextMenu_Default}"
                    FocusOnPageFocusGained.SelectorSelectedItem="True"
                    ItemsSource="{Binding Options}"
                    Margin="0,0,0,4" />
            </StackPanel>
        </Grid>
    </Grid>
</Page>