<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_FiestaSTRX43_15">
	
    <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="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20" MaxGear="8" MaxRpm="8000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Shift Lights Progress">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GreenLight_01_On">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.899" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GreenLight_02_On">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.899" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="YellowLight_01_On">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.899" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FLASHING">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_01_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.653" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_02_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.698" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_01_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.752" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_01_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.874" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="YellowLight_02_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.812" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.899" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="GreenLight_01_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_02_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_01_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_01_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.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="RedLight_02_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.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>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
		</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"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Gear_Background" Canvas.Left="384" Canvas.Top="134.977" Text="8" Width="136.416" FontSize="106.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFD80842" FontFamily="DG5_QuartzMS" TextAlignment="Center" Opacity="0.1"/>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="384" Canvas.Top="134.977" Text="{Binding Gear}" Width="136.416" FontSize="106.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFED0244" FontFamily="DG5_QuartzMS" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_Battery_Background" Canvas.Left="168" Canvas.Top="509.583" Text="888.8" Width="400" FontSize="74.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFAAC804" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Opacity="0.1">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Battery" Canvas.Left="168" Canvas.Top="509.583" Text="13.0" Width="400" FontSize="74.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFAAC804" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Water_Background" Canvas.Left="636" Canvas.Top="509.583" Text="888.8" Width="300" FontSize="74.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFAAC804" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Opacity="0.1">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Water" Canvas.Left="636" Canvas.Top="509.583" Text="96.0" Width="300" FontSize="74.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFAAC804" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Current_Lap_Background" Canvas.Left="911" Canvas.Top="617" Text="88.88:888" Width="400" FontSize="42.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFED0244" FontFamily="DG5_QuartzMS" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Opacity="0.15">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.15" ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Current_Lap" Canvas.Left="911" Canvas.Top="617" Text="{Binding CurLapTime}" Width="400" FontSize="42.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFED0244" FontFamily="DG5_QuartzMS" TextAlignment="Center" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.15" ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Gear_2_Background" Canvas.Left="1112" Canvas.Top="18.33" Text="8" Width="136.416" FontSize="106.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFD80842" FontFamily="DG5_QuartzMS" TextAlignment="Center" Opacity="0.1"/>
            <local:FastTextBlock x:Name="Text_Gear_2" Canvas.Left="1112" Canvas.Top="18.33" Text="{Binding Gear}" Width="136.416" FontSize="106.667" Style="{StaticResource TextBlockStyle}" Foreground="#FFED0244" FontFamily="DG5_QuartzMS" TextAlignment="Center"/>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="92" Width="600" Canvas.Left="405.344" Canvas.Top="134.33">
        	<Canvas x:Name="OFF" Height="92" Width="600">
        		<Image x:Name="GreenLight_01_Off" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109" Opacity="0.2"/>
        		<Image x:Name="GreenLight_02_Off" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="184.98" Opacity="0.2"/>
        		<Image x:Name="YellowLight_01_Off" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="259.96" Opacity="0.2"/>
        		<Image x:Name="YellowLight_02_Off" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="335.606" Opacity="0.2"/>
        		<Image x:Name="RedLight_01_Off" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_Off.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="410.585" Opacity="0.2"/>
        	</Canvas>
        	<Canvas x:Name="ON" Height="92" Width="600">
        		<Image x:Name="GreenLight_01_On" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109" Visibility="Hidden"/>
        		<Image x:Name="GreenLight_02_On" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="184.98" Visibility="Hidden"/>
        		<Image x:Name="YellowLight_01_On" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="259.96" Visibility="Hidden"/>
        		<Image x:Name="YellowLight_02_On" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="335.606" Visibility="Hidden"/>
        		<Image x:Name="RedLight_01_On" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="410.585" Visibility="Hidden"/>
        	</Canvas>
        	<Canvas x:Name="FLASHING" Height="92" Width="600" Visibility="Hidden">
        		<Image x:Name="GreenLight_01_FLASHING" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="109"/>
        		<Image x:Name="GreenLight_02_FLASHING" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_ShiftLight_Green_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="184.98"/>
        		<Image x:Name="YellowLight_01_FLASHING" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="259.96"/>
        		<Image x:Name="RedLight_01_FLASHING" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="335.606"/>
        		<Image x:Name="RedLight_02_FLASHING" Height="128" Source="game:/media/cars/FOR_FiestaSTRX43_15/UI/Textures/FOR_FiestaSTRX43_15_RedLight_On.PNG" Stretch="Fill" Width="128" Canvas.Top="-15" Canvas.Left="410.585"/>
        	</Canvas>
        </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 Shift Lights Progress}"/>
		
		
	</Canvas>
</Page>