<Page
	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:System="clr-namespace:System;assembly=mscorlib"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:ForzaUI"
    mc:Ignorable="d"
	x:Class="ForzaUI.FOR_MustangRTRSpec5_18">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_N">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_D">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Start Up Animation">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	  

	<Canvas x:Name="LayoutRoot" Background="Transparent" Width="1280" Height="720">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="NightDaySplit">
				<VisualState x:Name="Day"/>
				<VisualState x:Name="Night"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
        <Rectangle x:Name="Neutral_Background" Fill="Black" Height="720" Width="1280" Canvas.Top="1" StrokeThickness="0"/>
        <Image x:Name="MFD_Graphics" Height="240" Canvas.Left="731.5" Source="game:/media/cars/FOR_MustangRTRSpec5_18/UI/Textures/FOR_ShelbyRaptor_13_MFD.png" Stretch="Fill" Canvas.Top="116.5" Width="420"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="622.192" Canvas.Top="305.5" Text="{Binding Odometer}" Width="250" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5"/>
			<local:FastTextBlock x:Name="Text_Tripmeter" Canvas.Left="732.192" Canvas.Top="233.5" Text="{Binding TripMeter}" Width="170" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5"/>
            <local:FastTextBlock x:Name="Text_Current_Lap" Canvas.Left="778.192" Canvas.Top="176.5" Text="{Binding CurLapTime}" Width="170" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="80" Width="378" Canvas.Left="178" Canvas.Top="563">
        	<Image x:Name="Shift_Graphics" Height="32" Canvas.Left="70" Source="game:/media/cars/FOR_MustangRTRSpec5_18/UI/Textures/FOR_MustangRTRSpec5_18_Shift.png" Stretch="Fill" Canvas.Top="-60" Width="232"/>
        	<Image x:Name="Shift_N" Height="35" Canvas.Left="172" Source="game:/media/cars/FOR_MustangRTRSpec5_18/UI/Textures/FOR_MustangRTRSpec5_18_Shift_N.png" Stretch="Fill" Canvas.Top="-62" Width="29" Visibility="Hidden"/>
        	<Image x:Name="Shift_D" Height="35" Canvas.Left="224" Source="game:/media/cars/FOR_MustangRTRSpec5_18/UI/Textures/FOR_MustangRTRSpec5_18_Shift_D.png" Stretch="Fill" Canvas.Top="-62.25" Width="30" Visibility="Hidden"/>
        	<Image x:Name="Shift_R" Height="35" Canvas.Left="120" Source="game:/media/cars/FOR_MustangRTRSpec5_18/UI/Textures/FOR_MustangRTRSpec5_18_Shift_R.png" Stretch="Fill" Canvas.Top="-62" Width="27"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>