<UserControl
    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"
    xmlns:local="clr-namespace:ForzaUI" 
    x:Class="ForzaUI.HUDInstructionControl"
    x:Name="UserControl">

    <StackPanel x:Name="LayoutRoot" Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Left">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.5"/>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Shown"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <DockPanel MaxWidth="{StaticResource A_Double_HudInstruction_MaxWidth}">
            <local:FZMaterial Style="{StaticResource A_Style_FZMaterial_HudInstruction_InfoIcon}"
                DockPanel.Dock="Left"/>
            <StackPanel DockPanel.Dock="Left">
                <Decorator Height="9"/>
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudInstruction}" 
                                       local:TextBlockInlineMarkup.ResourceBaseName=""
                                       local:TextBlockInlineMarkup.Markup="{Binding Maintext}"/>
                <Decorator Height="10"/>
                <local:FZTextBlock Style="{StaticResource A_Style_FZTextBlock_HudInstruction}" Text="{Binding Subtext}" DockPanel.Dock="Bottom"/>
            </StackPanel>
        </DockPanel>
    </StackPanel>

</UserControl>