<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.DOD_RamRunnerHE_13">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="True" UseDegreesF="True" 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="False" HasTextBoost="True" 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_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_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_D">
				<DiscreteObjectKeyFrame KeyTime="0" 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="#FF474747" Height="720" Width="1280" Canvas.Top="1" StrokeThickness="0"/>
		<Image x:Name="MFD_Graphics" Height="395" Canvas.Left="352" Source="game:/media/cars/DOD_RamRunnerHE_13/UI/Textures/DOD_RamRunner_13_graphics.png" Stretch="Fill" Canvas.Top="179" Width="636"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_Odometer" Canvas.Left="517.192" Canvas.Top="493.5" Text="{Binding Odometer}" Width="220" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right"/>
            <TextBlock x:Name="Text_External_Temp" Canvas.Left="749.192" Canvas.Top="230.5" Text="{Binding ExternalTemp}" Width="140" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right"/>
            <TextBlock x:Name="Text_Speed" Canvas.Left="476.192" Canvas.Top="294.5" Text="{Binding Speed}" Width="300" FontSize="101.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="80" Width="378" Canvas.Left="530" Canvas.Top="494">
        	<Image x:Name="Shift_R" Height="30" Canvas.Left="87.833" Source="game:/media/cars/DOD_RamRunnerHE_13/UI/Textures/DOD_RamRunner_13_Gears_R.png" Stretch="Fill" Canvas.Top="40.5" Width="142"/>
        	<Image x:Name="Shift_N" Height="30" Canvas.Left="90.165" Source="game:/media/cars/DOD_RamRunnerHE_13/UI/Textures/DOD_RamRunner_13_Gears_N.png" Stretch="Fill" Canvas.Top="40.668" Width="142" Visibility="Hidden"/>
        	<Image x:Name="Shift_D" Height="30" Canvas.Left="92.496" Source="game:/media/cars/DOD_RamRunnerHE_13/UI/Textures/DOD_RamRunner_13_Gears_D.png" Stretch="Fill" Canvas.Top="40.5" Width="178" Visibility="Hidden"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>