<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.AUD_TTS_15">
	
    <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="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="83.4" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20.0" MinGear="-1" MaxGear="6" MaxRpm="8000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-124.998"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="125.092"/>
			</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">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.125" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.375" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.625" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_7">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.875" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_8">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.125" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="N">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.125" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.375" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.375" 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_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.625" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.625" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.875" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.875" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Speedo Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Speed_Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-138.322"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="0.7"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="138.212"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
			<BeginStoryboard Storyboard="{StaticResource Gear Analog}"/>
			<BeginStoryboard Storyboard="{StaticResource Speedo Analog}"/>
		</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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
		<Rectangle x:Name="Background_Grey" Fill="Black" Height="600" Canvas.Top="7" Width="1280"/>
		<Image x:Name="Graphics" Height="405" Canvas.Left="58.333" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_graphics.png" Stretch="Fill" Canvas.Top="149" Width="1160"/>
		<Image x:Name="Graphics_Temperature" Height="55" Canvas.Left="74.333" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Temp.png" Stretch="Fill" Canvas.Top="631" Width="238"/>
		<Image x:Name="Graphics_Fuel" Height="38" Canvas.Left="963.333" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Fuel.png" Stretch="Fill" Canvas.Top="627" Width="232"/>
		<Canvas x:Name="Shift_Analog" Height="192.333" Canvas.Left="94.333" Canvas.Top="244.333" Width="350">
			<Image x:Name="R" Height="41" Canvas.Left="151" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_R.png" Stretch="Fill" Canvas.Top="86" Width="46"/>
			<Image x:Name="N" Height="41" Canvas.Left="151" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_N.png" Stretch="Fill" Canvas.Top="86" Width="44" Visibility="Hidden"/>
			<Image x:Name="Shift_1" Height="41" Canvas.Left="130.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_1.png" Stretch="Fill" Canvas.Top="86.331" Width="67" Visibility="Hidden"/>
			<Image x:Name="Shift_2" Height="41" Canvas.Left="130.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_2.png" Stretch="Fill" Canvas.Top="86.5" Width="85" Visibility="Hidden"/>
			<Image x:Name="Shift_3" Height="41" Canvas.Left="130.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_3.png" Stretch="Fill" Canvas.Top="86.5" Width="89" Visibility="Hidden"/>
			<Image x:Name="Shift_4" Height="41" Canvas.Left="130.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_4.png" Stretch="Fill" Canvas.Top="86.331" Width="90" Visibility="Hidden"/>
			<Image x:Name="Shift_5" Height="41" Canvas.Left="130.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_5.png" Stretch="Fill" Canvas.Top="86.331" Width="85" Visibility="Hidden"/>
			<Image x:Name="Shift_6" Height="41" Canvas.Left="130.167" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_Shift_6.png" Stretch="Fill" Canvas.Top="86.331" Width="86" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Fuel_Animation" Height="105" Canvas.Left="902.667" Canvas.Top="607" Width="302.666">
			<Rectangle x:Name="Fuel_1" Fill="White" Height="6" Canvas.Left="58" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_2" Fill="White" Height="6" Canvas.Left="83" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_3" Fill="White" Height="6" Canvas.Left="108" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_4" Fill="White" Height="6" Canvas.Left="133" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_5" Fill="White" Height="6" Canvas.Left="158" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_6" Fill="White" Height="6" Canvas.Left="183" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_7" Fill="White" Height="6" Canvas.Left="208" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
			<Rectangle x:Name="Fuel_8" Fill="White" Height="6" Canvas.Left="233" Canvas.Top="29.667" Width="22" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Temperature_Graphics" Height="105" Canvas.Left="67.667" Canvas.Top="607" Width="302.666">
			<Rectangle x:Name="Fuel_9" Fill="White" Height="6" Canvas.Left="58" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_10" Fill="White" Height="6" Canvas.Left="83" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_11" Fill="White" Height="6" Canvas.Left="108" Canvas.Top="29.667" Width="22"/>
			<Rectangle x:Name="Fuel_12" Fill="White" Height="6" Canvas.Left="133" Canvas.Top="29.667" Width="22"/>
		</Canvas>
		<Canvas x:Name="Speedo" Height="364" Canvas.Left="656" Canvas.Top="170.333" Width="616">
			<Image x:Name="Tach_Needle" Height="298" Canvas.Left="-497.667" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_needle.png" Stretch="Fill" Canvas.Top="-5.338" Width="218" RenderTransformOrigin="0.5,0.625">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-124.998"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Tach" Height="364" Canvas.Left="8" Canvas.Top="170.333" Width="616">
			<Image x:Name="Speed_Needle" Height="298" Canvas.Left="891.999" Source="game:/media/cars/AUD_TTS_15/UI/Textures/AUD_TTS_15_needle.png" Stretch="Fill" Canvas.Top="-6.001" Width="218" RenderTransformOrigin="0.5,0.625">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-138.322"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<TextBlock x:Name="Text_Clock" Canvas.Left="466.818" Canvas.Top="478.057" Text="{Binding Time}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<TextBlock x:Name="Text_External_Temp" Canvas.Left="607.479" Canvas.Top="478.057" Text="{Binding ExternalTemp}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<TextBlock x:Name="Text_Speed" Canvas.Left="909.668" Canvas.Top="316.722" Text="{Binding Speed}" FontSize="56" Style="{StaticResource TextBlockStyle}" Width="200" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center"/>
		</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}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
		<local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speedo Analog}"/>
	
		
	</Canvas>
</Page>