<HallOfFameBannerScene 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_HallOfFameBanner"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      Height="540"
      Width="200"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      GamerPicMaterialDownloaded="{Binding Downloaded, ElementName=GamerPic, FallbackValue={StaticResource A_Boolean_False}}">
    <HallOfFameBannerScene.Resources>
        <Size x:Key="A_Size_GamerPicSizeParams">208,208</Size>
        <ImageSource x:Key="A_BitmapImage_BannerFallback">/ForzaUI;component/Textures/Data_Bound/HallOfFame/BannerFallback.png</ImageSource>
        <FZMaterialPreset x:Key="A_Preset_GamerPic" AlphaMode="MultSrcAlpha"/>
    </HallOfFameBannerScene.Resources>
    <Grid>
        <FZMaterial ImageSource="{StaticResource A_BitmapImage_BannerFallback}"/>

        <Grid Height="261" VerticalAlignment="Top">
            <FZMaterial Color="Black"/>
            <FZMaterial
                x:Name="GamerPic"
                ImageSource="{Binding UserProfile, Converter={StaticResource A_GamerPicConverter}, ConverterParameter={StaticResource A_Size_GamerPicSizeParams}, FallbackValue={StaticResource A_BitmapImage_GamerPicFallback}}"
                Preset="{StaticResource A_Preset_GamerPic}"
                Stretch="UniformToFill"
                HorizontalAlignment="Center"/>
        </Grid>
        <Grid Height="261" VerticalAlignment="Bottom">
            <DockPanel Margin="15,14">
                <StackPanel DockPanel.Dock="Top"
                            Orientation="Horizontal">
                    <FZMaterial DataContext="{Binding UserProfile}"
                                Style="{Binding XP, Converter={StaticResource A_XPConverter_PlayerBarStyle}}"
                                Width="32"
                                Height="32"
                                Margin="0,0,8,0">
                        <FZTextBlock Style="{StaticResource A_Style_FZTextBlock_PlayerLevelText_Base}"
                                     HorizontalAlignment="Center"
                                     TextAlignment="Center"
                                     CapHeight="18"
                                     Margin="4,0"/>
                    </FZMaterial>
                </StackPanel>
                <FZTextBlock
                    Text="{Binding UserProfile.FormattedGamertag, FallbackValue={Null}}"
                    FontFamily="Horizon_B"
                    CapHeight="22"
                    Margin="0,11"
                    Color="{StaticResource H_Color_Primary_White}"/>
            </DockPanel>
        </Grid>
    </Grid>
</HallOfFameBannerScene>
