<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.ZEN_TSRS_19">
	
    <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="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="220.74" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="True" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20.0" MinGear="-1" MaxGear="9" MaxRpm="9000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Tach_2">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.113" Value="25.243"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.223" Value="55.3165576923077"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="87.796"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="123.40107784431137"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.555" Value="160.273"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="199.909"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.776" Value="240.035"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="289.033"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="344.091"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Tach_Gradient">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.113" Value="25.57"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.223" Value="55.519038461538464"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="87.864"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="123.72564071856289"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.555" Value="160.182"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="199.636"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.776" Value="239.852"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="289.539"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="343.636"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Tach_2">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.113" Value="-0.053"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.223" Value="-0.098673076923076919"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="-0.148"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.444" Value="-0.20050898203592815"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.555" Value="-0.204"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-0.159"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.776" Value="-0.101"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.889" Value="-0.045"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</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>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fuel_Orange">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="84.636"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_Orange">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="41.818"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_White">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="84.242"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<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="Background_Grey" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Image x:Name="Graphics_BackGround" Height="80" Canvas.Left="218" Source="game:/media/cars/ZEN_TSRS_19/UI/Textures/ZEN_TSRS_19_Background.png" Stretch="Fill" Canvas.Top="183" Width="770"/>
		<Canvas x:Name="Tach" Height="43.092" Canvas.Left="421.152" Canvas.Top="203.454" Width="375.362" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Canvas x:Name="TachBar" Height="36.091" Canvas.Left="-9.476" Canvas.Top="3.024" Width="31.076">
				<Rectangle x:Name="Tach_Gradient" Height="16.923" Canvas.Top="8.751" Width="31.076" RenderTransformOrigin="0.5,0.5" Canvas.Left="-0.667">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="90"/>
							<TranslateTransform/>
						</TransformGroup>
					</Rectangle.RenderTransform>
					<Rectangle.Fill>
						<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
							<GradientStop Color="#00000000" Offset="1"/>
							<GradientStop Color="#FFFFAF00"/>
						</LinearGradientBrush>
					</Rectangle.Fill>
				</Rectangle>
			</Canvas>
		</Canvas>
		<Image x:Name="Graphics_MidLayer" Height="80" Canvas.Left="218" Source="game:/media/cars/ZEN_TSRS_19/UI/Textures/ZEN_TSRS_19_MidLayer.png" Stretch="Fill" Canvas.Top="183" Width="770"/>
		<Canvas x:Name="TachBar2" Height="43.092" Canvas.Left="421.152" Canvas.Top="203.454" Width="375.362" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Canvas x:Name="TachBar1" Height="36.091" Canvas.Left="-9.476" Canvas.Top="3.024" Width="31.076">
				<Rectangle x:Name="Tach_2" Fill="White" Height="36.091" Canvas.Left="22.25" Width="1.682" RenderTransformOrigin="0.5,0.5">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Canvas>
		</Canvas>
		<Image x:Name="Graphics_UpperLayer" Height="335" Canvas.Left="140" Source="game:/media/cars/ZEN_TSRS_19/UI/Textures/ZEN_TSRS_19_UpperLayer.png" Stretch="Fill" Canvas.Top="0" Width="915"/>
		<Rectangle x:Name="TempGaugeBG" Fill="#FF050A14" Height="50" Canvas.Left="988.333" Stroke="Black" Canvas.Top="656.667" Width="267.334"/>
		<Rectangle x:Name="NavScreenBG" Fill="#FF050A14" Height="379.417" Stroke="Black" Canvas.Top="336.667" Width="544.668"/>
		<Image x:Name="NAVLogo" Height="128" Canvas.Left="147.334" Source="game:/media/cars/ZEN_TSRS_19/UI/Textures/ZEN_TSRS_19_NavLogo.png" Stretch="Fill" Canvas.Top="460.999" Width="256"/>
		<Canvas x:Name="Oil" Height="10.68" Canvas.Left="795.431" Canvas.Top="146.076" Width="89.138" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Rectangle x:Name="Fuel_Orange2" Fill="#FFFFA400" Height="3.272" Canvas.Left="2.574" Width="48.725" Canvas.Top="3.81"/>
			<Rectangle x:Name="Fuel_White2" Fill="White" Height="7.741" Canvas.Left="50.299" Width="1" Canvas.Top="1.5"/>
		</Canvas>
		<Canvas x:Name="Water" Height="10.68" Canvas.Left="307.681" Canvas.Top="146.077" Width="89.138" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Rectangle x:Name="Fuel_Orange1" Fill="#FF0079FF" Height="3.272" Canvas.Left="2.574" Width="34.362" Canvas.Top="3.81"/>
			<Rectangle x:Name="Fuel_White1" Fill="White" Height="7.741" Canvas.Left="36.936" Width="1" Canvas.Top="1.5"/>
		</Canvas>
		<Canvas x:Name="Fuel" Height="10.68" Canvas.Left="555.681" Canvas.Top="267.077" Width="89.138" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Rectangle x:Name="Fuel_Orange" Fill="#FFFFA400" Height="3.272" Canvas.Left="2.574" Width="1" Canvas.Top="3.81" RenderTransformOrigin="0.5,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Fuel_White" Fill="White" Height="7.741" Canvas.Left="2.572" Width="1" Canvas.Top="1.5" RenderTransformOrigin="0.5,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="396.325" Canvas.Top="356.43" Text="{Binding Time}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_Temp" Canvas.Left="845.482" Canvas.Top="493.475" Text="{Binding ExternalTemp}" FontSize="14.667" Style="{StaticResource TextBlockStyle}" Width="33.507" FontFamily="DG5_QuartzMS" Foreground="#FFD6A704" RenderTransformOrigin="0.5,0.5" TextAlignment="Right">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.7"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="514.404" Canvas.Top="215.321" Text="{Binding Speed}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="47.374" FontFamily="DG2_LCD" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="36.247">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="604.259" Canvas.Top="208.654" Text="{Binding Gear}" FontSize="48" Style="{StaticResource TextBlockStyle}" Width="44.09" FontFamily="DG2_LCD" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="47.751">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Boost" Canvas.Left="711.608" Canvas.Top="230.017" Text="{Binding BoostText}" FontSize="9.333" Style="{StaticResource TextBlockStyle}" Width="19.846" FontFamily="DG2_LCD" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center" Height="11.842">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Oil_NULL" Canvas.Left="771.154" Canvas.Top="261.38" Text="4.6" FontSize="8" Style="{StaticResource TextBlockStyle}" Width="19.846" FontFamily="DG2_LCD" Foreground="#FFF11F0A" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="11.842">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Water_NULL" Canvas.Left="546.609" Canvas.Top="261.38" Text="73" FontSize="8" Style="{StaticResource TextBlockStyle}" Width="19.846" FontFamily="DG2_LCD" Foreground="#FF0079FF" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="11.842">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Fuel" Canvas.Left="664.79" Canvas.Top="316.38" Text="{Binding FuelText}" FontSize="8" Style="{StaticResource TextBlockStyle}" Width="19.846" FontFamily="DG2_LCD" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="9.569">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.5"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_C_NULL" Canvas.Left="871.988" Canvas.Top="501.779" Text="c" Style="{StaticResource TextBlockStyle}" Width="9.543" FontFamily="DG5_QuartzMS" Foreground="#FFF9A92F" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="11.842" FontSize="6.667"/>
			<local:FastTextBlock x:Name="Text_degree_NULL" Canvas.Left="867.943" Canvas.Top="501.904" Text="o" Style="{StaticResource TextBlockStyle}" Width="9.543" FontFamily="DG1_Arial" Foreground="#FFF9A92F" RenderTransformOrigin="0.5,0.5" TextAlignment="Right" Height="11.842" FontSize="5.333"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	
		
	</Canvas>
</Page>