<InWorldLeaderboardScene 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_InWorldLeaderboardScene"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}"
      DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <InWorldLeaderboardScene.Resources>
        <ResourceDictionary>
            <Double x:Key="A_Double_ClassContainer_Height">60</Double>

            <Style x:Key="A_Style_InWorldLeaderboardMarkup_HIGHLIGHT" TargetType="local:FZRun">
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_InWorldLeaderboardMarkup">
                <MappingConverterEntry Key="{NoCase HIGHLIGHT}" Value="{StaticResource A_Style_InWorldLeaderboardMarkup_HIGHLIGHT}" />
            </MappingConverter>

            <DropShadowEffect x:Key="A_DropShadowEffect_InWorldLeaderboard"
                              Color="{StaticResource A_Color_HUDDropShadow}"
                              BlurRadius="0"
                              ShadowDepth="8" />

            <Style x:Key="A_Style_InWorldLeaderboardTextBase" TargetType="{x:Type FZTextBlock}">
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="FontFamily" Value="Horizon_A"/>
                <Setter Property="Color" Value="{StaticResource H_Color_Primary_White}"/>
            </Style>

            <Style x:Key="A_Style_InWorldLeaderboardTextShadowed" BasedOn="{StaticResource A_Style_InWorldLeaderboardTextBase}" TargetType="{x:Type FZTextBlock}">
                <Setter Property="Effect" Value="{StaticResource A_DropShadowEffect_InWorldLeaderboard}"/>
            </Style>

            <FZMaterialPresetRoundtangle
                x:Key="A_FZMaterialPresetRoundtangle_InWorldLeaderboardSeasonalBackgoround"
                BasedOn="{StaticResource A_FZMaterialPreset_FlatPanel_Base}"
                GradientColorA="{StaticResource A_Color_SeasonalContentGradientA}"
                GradientColorB="{StaticResource A_Color_SeasonalContentGradientB}"
                GradientAngle="50" />
            
            <Style x:Key="A_Style_FZMaterial_InWorldLeaderboardBackground" TargetType="{x:Type FZMaterial}">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}}" Value="True">
                        <Setter Property="Color" Value="#FFFFFFFF"/>
                        <Setter Property="Preset" Value="{StaticResource A_FZMaterialPresetRoundtangle_InWorldLeaderboardSeasonalBackgoround}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <Style x:Key="A_Style_FZMaterial_InWorldLeaderboardBackground_PlayerPosition" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground}">
                <Setter Property="Color" Value="{Binding PlayerEntry.ClassID, ConverterParameter=color_a, Converter={StaticResource A_CarClassConverter}}"/>
            </Style>

            <MappingConverter x:Key="A_MappingConverter_InWorldLeaderboard_EventTypeToSeasonalIconPath">
                <MappingConverterEntry Key="{x:Static OpenLifeEventDisplayType.TimeAttack}" Value="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/time_attack_seasonal_icon.png"/>
                <MappingConverterEntry Key="{x:Static OpenLifeEventDisplayType.DragMeets}" Value="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/drag_meet_seasonal_icon.png"/>
            </MappingConverter>

            <DataTemplate DataType="{x:Type local:InWorldLeaderboardPlayerPositionDataSource}">
                <Grid>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,30.667,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                        <FZMaterial Color="{Binding PlayerEntry.ClassID, ConverterParameter=color, Converter={StaticResource A_CarClassConverter}}" Width="76" Height="{StaticResource A_Double_ClassContainer_Height}">
                            <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding PlayerEntry.ClassID, ConverterParameter=string, Converter={StaticResource A_CarClassConverter}}" FontFamily="Horizon_C" CapHeight="31.333" Color="{StaticResource H_Color_Primary_White}"/>
                        </FZMaterial>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_PlayerPositionTitle}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,15.333,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                        <FZMaterial Width="66.667" Height="78.667" ImageSource="{Binding DisplayData.EventType, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_MappingConverter_InWorldLeaderboard_EventTypeToSeasonalIconPath}}"/>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_PlayerPositionTitle_Seasonal}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>

                    <FZMaterial x:Name="Background"
                                Margin="30.667,151.333,30.667,87.333"
                                Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_PlayerPosition}" >
                        <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/your_position_gradient.png"/>
                    </FZMaterial>

                    <StackPanel x:Name="CarInfo" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,120.667,0,0">
                        <FZMaterial ImageSource="{Binding CarThumbnail}" Width ="740.667" Height="416" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                        <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding PlayerEntry.CarName, Converter={StringToUpper}}" CapHeight="40" Margin="0,-8.667,0,0"/>
                    </StackPanel>

                    <StackPanel x:Name="PlayerAndScore" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="60.667,0,0,190.667">
                        <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding PlayerEntry.UserProfile.FormattedGamertag}" CapHeight="45.333" Color="{StaticResource H_Color_Primary_Yellow}"/>
                        <FZMaterial x:Name="ScoreContainer" Color="#4D000000" Width="516.333" Height="133.333" Margin="0,28.667,0,0">
                            <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding PlayerEntry.Score, Converter={StringToUpper}}" CapHeight="78.667" Color="{StaticResource H_Color_Primary_Yellow}"/>
                            </Decorator>
                        </FZMaterial>
                        <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" 
                                   HorizontalAlignment="Center" 
                                   MaxWidth="{Binding ActualWidth, ElementName=ScoreContainer}"
                                   Height="72.667">
                            <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding TopPercentText}" FontFamily="Horizon_C" CapHeight="52" Margin="0,20.667,0,0" Visibility="{Binding PlayerEntry.Position, Converter={StaticResource A_Converter_VisibleIfGreaterThanZero}}"/>
                        </Decorator>
                    </StackPanel>
                </Grid>
            </DataTemplate>

            <Style x:Key="A_Style_FZMaterial_InWorldLeaderboardBackground_ColorA" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground}">
                <Setter Property="Color" Value="{Binding ClassID, ConverterParameter=color_a, Converter={StaticResource A_CarClassConverter}}"/>
            </Style>

            <Style x:Key="A_Style_FZMaterial_InWorldLeaderboardBackground_ColorB" TargetType="{x:Type FZMaterial}" BasedOn="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground}">
                <Setter Property="Color" Value="{Binding ClassID, ConverterParameter=color_b, Converter={StaticResource A_CarClassConverter}}"/>
            </Style>

            <Style x:Key="A_Style_InWorldLeaderboardText_Gamertag" TargetType="{x:Type FZTextBlock}" BasedOn="{StaticResource A_Style_InWorldLeaderboardTextShadowed}">
                <Setter Property="Text" Value="{Binding UserProfile.FormattedGamertag}"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsLocalPlayer}" Value="True">
                        <Setter Property="Color" Value="{StaticResource H_Color_Primary_Yellow}"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>

            <DataTemplate DataType="{x:Type local:InWorldLeaderboardPlayerRivalDataSource}">
                <Grid>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,30.667,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                        <FZMaterial Color="{Binding BottomEntry.ClassID, ConverterParameter=color, Converter={StaticResource A_CarClassConverter}}" Width="76" Height="{StaticResource A_Double_ClassContainer_Height}">
                            <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding BottomEntry.ClassID, ConverterParameter=string, Converter={StaticResource A_CarClassConverter}}" FontFamily="Horizon_C" CapHeight="31.333" Color="{StaticResource H_Color_Primary_White}"/>
                        </FZMaterial>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_PlayerRivalTitle}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,15.333,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                        <FZMaterial Width="66.667" Height="78.667" ImageSource="{Binding DisplayData.EventType, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_MappingConverter_InWorldLeaderboard_EventTypeToSeasonalIconPath}}"/>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_PlayerRivalTitle_Seasonal}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>

                    <Grid Margin="0,123.333,0,0">
                        <StackPanel>
                            <!-- Top Entry -->
                            <Grid Width="1157.333" Height="262.667">
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_ColorA}" DataContext="{Binding TopEntry}">
                                    <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/rival_you_gradient.png"/>
                                </FZMaterial>
                                <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="73.333,0,0,36">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Gamertag}" DataContext="{Binding TopEntry}" CapHeight="40"/>
                                    <FZMaterial Color="#4D000000" Width="453.333" Height="121.333" Margin="0,22,0,0">
                                        <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                            <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding TopEntry.Score, Converter={StringToUpper}}" CapHeight="66.667" Color="{StaticResource H_Color_Primary_Yellow}"/>
                                        </Decorator>
                                    </FZMaterial>
                                </StackPanel>
                                <StackPanel Margin="0,-45.333,53.333,0" Width="526.667" HorizontalAlignment="Right">
                                    <FZMaterial ImageSource="{Binding TopCarThumbnail}" Width="476.667" Height="267.333" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding TopEntry.CarName, Converter={StringToUpper}}" CapHeight="21.667" Margin="0,-12.667,0,0"/>
                                </StackPanel>
                            </Grid>
                            <FrameworkElement Height="52"/>
                            <!-- Bottom Entry -->
                            <Grid Width="1026.667" Height="244">
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_ColorB}" DataContext="{Binding BottomEntry}">
                                    <Grid>
                                        <FZMaterial Color="#4D000000" Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                                        <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/rival_gradient.png"/>
                                    </Grid>
                                </FZMaterial>
                                <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="30,0,0,36">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Gamertag}" DataContext="{Binding BottomEntry}" CapHeight="34.667"/>
                                    <FZMaterial Color="#4D000000" Width="398.667" Height="106.667" Margin="0,20.667,0,0">
                                        <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                            <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding BottomEntry.Score, Converter={StringToUpper}}" CapHeight="59.333" Color="{StaticResource H_Color_Primary_Yellow}"/>
                                        </Decorator>
                                    </FZMaterial>
                                </StackPanel>
                                <StackPanel Margin="0,0.667,75.333,0" Width="413.333" HorizontalAlignment="Right">
                                    <FZMaterial ImageSource="{Binding BottomCarThumbnail}" Width ="374" Height="209.333" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding BottomEntry.CarName, Converter={StringToUpper}}" CapHeight="20.667" Margin="0,-5.333,0,0"/>
                                </StackPanel>
                            </Grid>
                        </StackPanel>
                        <FZMaterial HorizontalAlignment="Center" Height="80" Margin="0,-20.333,0,0" Color="{StaticResource H_Color_Primary_Yellow}">
                            <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" Margin="23.333,0">
                                <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextBase}" Text="{Binding TimeDeltaText}" CapHeight="48.667" Color="{StaticResource H_Color_Primary_Black}" />
                            </Decorator>
                        </FZMaterial>
                    </Grid>
                </Grid>
            </DataTemplate>

            <Style x:Key="A_Style_FZRun_InWorldLeaderboardPosition_SUPERSCRIPT" TargetType="{x:Type local:FZRun}">
                <Setter Property="SubscriptScale" Value="-.52" />
            </Style>

            <MappingConverter x:Key="A_MappingConverter_InWorldLeaderboard_PositionText">
                <MappingConverterEntry Key="{NoCase SUPERSCRIPT}" Value="{StaticResource A_Style_FZRun_InWorldLeaderboardPosition_SUPERSCRIPT}" />
            </MappingConverter>

            <Style x:Key="A_Style_InWorldLeaderboardText_Top3Place" TargetType="{x:Type FZTextBlock}" BasedOn="{StaticResource A_Style_InWorldLeaderboardTextShadowed}">
                <Setter Property="FontFamily" Value="Horizon_C"/>
                <Setter Property="MarkupConverter" Value="{StaticResource A_MappingConverter_InWorldLeaderboard_PositionText}"/>
            </Style>

            <DataTemplate DataType="{x:Type local:InWorldLeaderboardTop3DataSource}">
                <Grid>
                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,30.667,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter_Inverse}}">
                        <FZMaterial Color="{Binding FirstEntry.ClassID, ConverterParameter=color, Converter={StaticResource A_CarClassConverter}}" Width="76" Height="{StaticResource A_Double_ClassContainer_Height}">
                            <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding FirstEntry.ClassID, ConverterParameter=string, Converter={StaticResource A_CarClassConverter}}" FontFamily="Horizon_C" CapHeight="31.333" Color="{StaticResource H_Color_Primary_White}"/>
                        </FZMaterial>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_Top3Title}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>

                    <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="30.667,15.333,0,0"
                                Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                        <FZMaterial Width="66.667" Height="78.667" ImageSource="{Binding DisplayData.EventType, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_MappingConverter_InWorldLeaderboard_EventTypeToSeasonalIconPath}}"/>
                        <FZTextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Loc Scoreboard.IDS_Top3Title_Seasonal}" FontFamily="Horizon_C" CapHeight="25.333" Color="{StaticResource H_Color_Primary_White}" Margin="8,0,0,0"/>
                    </StackPanel>
                    
                    <Grid Margin="30.667,30.667,30.667,30.667">
                        <DockPanel>
                            <!-- Second Entry -->
                            <Grid DockPanel.Dock="Left" Width="373.333" Height="572" VerticalAlignment="Bottom" Visibility="{Binding SecondEntry, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}">
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_ColorB}" DataContext="{Binding SecondEntry}">
                                    <Grid>
                                        <FZMaterial Color="#4D000000" Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                                        <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/leaders_gradient_2_3.png"/>
                                    </Grid>
                                </FZMaterial>
                                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,36.667,0,0">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Top3Place}" VerticalAlignment="Top" Text="{Loc Scoreboard.IDS_InWorld_Top3_Place2}" CapHeight="144.667"/>
                                </Decorator>
                                <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,40">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding SecondEntry.CarName, Converter={StringToUpper}}" CapHeight="25.333"/>
                                    <FrameworkElement Height="17.333"/>
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Gamertag}" DataContext="{Binding SecondEntry}" CapHeight="33.333" MaxWidth="340"/>
                                    <FrameworkElement Height="24.667"/>
                                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                        <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding SecondEntry.Score, Converter={StringToUpper}}" CapHeight="50" Color="{StaticResource H_Color_Primary_Yellow}"/>
                                    </Decorator>
                                </StackPanel>
                                <FZMaterial ImageSource="{Binding SecondCarThumbnail}" VerticalAlignment="Top" Margin="-30,133.333,-30,0" Width="433.333" Height="243.333" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                            </Grid>
                            <!-- Third Entry -->
                            <Grid DockPanel.Dock="Right" Width="373.333" Height="572" VerticalAlignment="Bottom" Visibility="{Binding ThirdEntry, Converter={StaticResource A_FZBooleanToVisibilityConverter_UseHidden}}">
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_ColorB}" DataContext="{Binding ThirdEntry}">
                                    <Grid>  
                                        <FZMaterial Color="#4D000000" Visibility="{Binding DisplayData.IsSeasonal, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:Page}}, Converter={StaticResource A_FZBooleanToVisibilityConverter}}"/>
                                        <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/leaders_gradient_2_3.png"/>
                                    </Grid>
                                </FZMaterial>
                                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,36.667,0,0">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Top3Place}" VerticalAlignment="Top" Text="{Loc Scoreboard.IDS_InWorld_Top3_Place3}" CapHeight="144.667"/>
                                </Decorator>
                                <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,40">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding ThirdEntry.CarName, Converter={StringToUpper}}" CapHeight="25.333"/>
                                    <FrameworkElement Height="17.333"/>
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Gamertag}" DataContext="{Binding ThirdEntry}" CapHeight="33.333" MaxWidth="340"/>
                                    <FrameworkElement Height="24.667"/>
                                    <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                        <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding ThirdEntry.Score, Converter={StringToUpper}}" CapHeight="50" Color="{StaticResource H_Color_Primary_Yellow}"/>
                                    </Decorator>
                                </StackPanel>
                                <FZMaterial ImageSource="{Binding ThirdCarThumbnail}" VerticalAlignment="Top" Margin="-30,133.333,-30,0" Width="433.333" Height="243.333" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                            </Grid>
                            <!-- First Entry -->
                            <Grid Width="400" Height="609.333" VerticalAlignment="Bottom">
                                <FZMaterial Preset="{Roundtangle Softness=100}" Color="{StaticResource H_Color_Primary_Black}" Margin="-100,-80"/>
                                <FZMaterial Style="{StaticResource A_Style_FZMaterial_InWorldLeaderboardBackground_ColorA}" DataContext="{Binding FirstEntry}">
                                    <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/leaders_gradient_1.png"/>
                                </FZMaterial>
                                <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,26.667,0,0">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Top3Place}" VerticalAlignment="Top" Text="{Loc Scoreboard.IDS_InWorld_Top3_Place1}" CapHeight="178.667"/>
                                </Decorator>
                                <FZMaterial ImageSource="{Binding FirstCarThumbnail}" Width ="485.333" Height="272" VerticalAlignment="Top" Margin="-42.667,121.333,-42.667,0" Visibility="{Binding Downloaded, RelativeSource={RelativeSource Self}, Converter={FZBooleanToVisibilityConverter}}"/>
                                <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,19.333">
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding FirstEntry.CarName, Converter={StringToUpper}}" CapHeight="28"/>
                                    <FrameworkElement Height="18"/>
                                    <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardText_Gamertag}" DataContext="{Binding FirstEntry}" CapHeight="36" MaxWidth="370"/>
                                    <FrameworkElement Height="21.333"/>
                                    <FZMaterial Color="#4D000000" Width="400" Height="106.667">
                                        <Decorator LayoutTransform="{StaticResource A_Transform_Italic}" HorizontalAlignment="Center">
                                            <FZTextBlock Style="{StaticResource A_Style_InWorldLeaderboardTextShadowed}" Text="{Binding FirstEntry.Score, Converter={StringToUpper}}" CapHeight="53.333" Color="{StaticResource H_Color_Primary_Yellow}"/>
                                        </Decorator>
                                    </FZMaterial>
                                </StackPanel>
                            </Grid>
                        </DockPanel>
                    </Grid>
                </Grid>
            </DataTemplate>

        </ResourceDictionary>
    </InWorldLeaderboardScene.Resources>

    <Grid>
        <Grid Width="1280" Height="720">
            <Grid Visibility="{Binding DisplayData.StateData, Converter={StaticResource A_FZBooleanToVisibilityConverter}}">
                <FZMaterial ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/background.png"/>
                <Decorator Margin="0,30.667,30.667,0" HorizontalAlignment="Right" VerticalAlignment="Top" Height="{StaticResource A_Double_ClassContainer_Height}">
                    <FZTextBlock Margin="0,10,0,20"
                                 Text="{Binding DisplayData.TimeBeforeResetText}" 
                                 MarkupConverter="{StaticResource A_MappingConverter_InWorldLeaderboardMarkup}"
                                 CapHeight="25.333" 
                                 Color="{StaticResource H_Color_Primary_White}" 
                                 VerticalAlignment="Center"
                                 FontFamily="Horizon_C"/>
                </Decorator>

                <ContentPresenter Content="{Binding DisplayData.StateData}" />
            </Grid>
            <FZMaterial Visibility="{Binding DisplayData.StateData, Converter={StaticResource A_Converter_BoolToVis_Inverted}}" ImageSource="/ForzaUI;component/Textures/Data_Bound/InWorldLeaderboard/Fallback.png"/>
        </Grid>
    </Grid>
</InWorldLeaderboardScene>
