<UserControl
    DataContext="{Binding (HUDData.Data), RelativeSource={RelativeSource Self}}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:local="clr-namespace:ForzaUI" 
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    x:Class="ForzaUI.HUDEliminatorCarGradeControl"
    HorizontalAlignment="Right"
    VerticalAlignment="Top"
    x:Name="UserControl">

    <UserControl.Resources>
        <ResourceDictionary>
           
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="PART_LayoutRoot">

        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.0"/>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="PART_Hidden">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PART_LayoutRoot">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="PART_Shown"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        
        <StackPanel VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,1,0,20">
            <Decorator LayoutTransform="{StaticResource A_SkewTransform_HUD_Italics}" VerticalAlignment="Center">
                <FZTextBlock Text="{Binding TopString, Converter={StaticResource A_StringToUpper}}" HorizontalAlignment="Right" FontFamily="Horizon_A" Style="{StaticResource A_Style_FZTextBlock_HudMediumLarge_Tight}"/>
            </Decorator>
            <Control Style="{StaticResource A_Style_Control_EliminatorCar_GradeAlignedRight}" DataContext="{Binding EliminatorCarInfo}" Margin="0,10,0,0"/>
        </StackPanel>
    </Grid>
</UserControl>