<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.CHE_DebertiDriftTruck_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="True" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="True" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="29.0" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<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="Shift Lights Progress">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FLASHING">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_1_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.6" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_2_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.628" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_1_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.654" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_2_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.68" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_1_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.709" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_2_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.737" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_3_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.768" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.813" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_1_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_2_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_1_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_2_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_1_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_2_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_3_Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Color_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.15"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.32"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0.52"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.74"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
			<BeginStoryboard Storyboard="{StaticResource Tach}"/>
		</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="Grey_Background" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Shift_Lights" Fill="Black" Height="107" Canvas.Left="349" Canvas.Top="24" Width="600"/>
        <Image x:Name="Tach_Background" Height="234" Canvas.Left="381" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_DebertiDriftTruck_18_Tach_Bckgd.png" Stretch="Fill" Canvas.Top="222" Width="522"/>
        <Canvas x:Name="Tach_Animation" Height="313" Canvas.Left="381" Canvas.Top="204" Width="522">
        	<Rectangle x:Name="Color_Fill" Fill="#FF65666C" Height="260" Canvas.Left="17" Canvas.Top="8" Width="482" RenderTransformOrigin="0,0.5">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="0"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        </Canvas>
        <Image x:Name="Graphics_Main" Height="313" Canvas.Left="379" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_DebertiDriftTruck_18_Graphics.png" Stretch="Fill" Canvas.Top="204" Width="524"/>
        <Canvas x:Name="Shift_Lights" Height="92" Width="600" Canvas.Left="356" Canvas.Top="29.5">
        	<Canvas x:Name="OFF" Height="92" Width="600">
        		<Image x:Name="GreenLight_1_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="53" Opacity="0.25"/>
        		<Image x:Name="GreenLight_2_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109" Opacity="0.25"/>
        		<Image x:Name="YellowLight_1_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="165" Opacity="0.25"/>
        		<Image x:Name="YellowLight_2_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="220" Opacity="0.25"/>
        		<Image x:Name="RedLight_1_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="276" Opacity="0.25"/>
        		<Image x:Name="RedLight_2_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="332" Opacity="0.25"/>
        		<Image x:Name="RedLight_3_Off" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="389" Opacity="0.25"/>
        	</Canvas>
        	<Canvas x:Name="ON" Height="92" Width="600">
        		<Image x:Name="GreenLight_1_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="53" Visibility="Hidden"/>
        		<Image x:Name="GreenLight_2_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109" Visibility="Hidden"/>
        		<Image x:Name="YellowLight_1_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="165" Visibility="Hidden"/>
        		<Image x:Name="YellowLight_2_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="220" Visibility="Hidden"/>
        		<Image x:Name="RedLight_1_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="276" Visibility="Hidden"/>
        		<Image x:Name="RedLight_2_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="332" Visibility="Hidden"/>
        		<Image x:Name="RedLight_3_On" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="389" Visibility="Hidden"/>
        	</Canvas>
        	<Canvas x:Name="FLASHING" Height="92" Width="600" Visibility="Hidden">
        		<Image x:Name="GreenLight_1_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="53"/>
        		<Image x:Name="GreenLight_2_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_GreenLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109"/>
        		<Image x:Name="YellowLight_1_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="165"/>
        		<Image x:Name="YellowLight_2_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_YellowLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="220"/>
        		<Image x:Name="RedLight_1_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="276"/>
        		<Image x:Name="RedLight_2_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="332"/>
        		<Image x:Name="RedLight_3_Flashing" Height="128" Source="game:/media/cars/CHE_DebertiDriftTruck_18/UI/Textures/CHE_4_CorvetteZR1_11_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="389"/>
        	</Canvas>
        </Canvas>
        <Canvas x:Name="Text" Height="720" Width="1280">
        	<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="368" Canvas.Top="243.336" Text="{Binding Speed}" Width="150" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
        		<local:FastTextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform AngleX="-10"/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</local:FastTextBlock.RenderTransform>
        	</local:FastTextBlock>
        	<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="553" Canvas.Top="340.013" Text="{Binding Gear}" Width="136.416" FontSize="120" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
        		<local:FastTextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform AngleX="-10"/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</local:FastTextBlock.RenderTransform>
        	</local:FastTextBlock>
        	<local:FastTextBlock x:Name="Text_Water_NULL" Canvas.Left="736" Canvas.Top="431.07" Text="54" Width="100" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5">
        		<local:FastTextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="1.1"/>
        				<SkewTransform AngleX="-10"/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</local:FastTextBlock.RenderTransform>
        	</local:FastTextBlock>
        	<local:FastTextBlock x:Name="Text_Boost" Canvas.Left="736" Canvas.Top="365.203" Text="{Binding BoostText}" Width="100" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5">
        		<local:FastTextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="1.1"/>
        				<SkewTransform AngleX="-10"/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</local:FastTextBlock.RenderTransform>
        	</local:FastTextBlock>
        </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 Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Shift Lights Progress}"/>
	</Canvas>
</Page>