<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.FER_Enzo_02">
	
    <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="True" UseMPH="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="120" HasAbsLight="True" HasStmLight="True" HasTcsLight="True" HasGAccelX="True" HasGAccelY="True" HasShiftLights="True" HasTextTach="True" HasLapPlaceInfo="True" HasTextBoost="True" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_Gauge">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="149"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Progress">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_1_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.675" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.682" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.767" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_2_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.697" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.706" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.767" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_3_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.717" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.725" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.767" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_4_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.737" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.743" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.767" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_5_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.753" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.76" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.767" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_1_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.682" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_2_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.706" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_3_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.725" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_4_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.743" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_5_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.76" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FLASHING">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.767" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_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="Red_Light_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="Red_Light_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>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_4_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="Red_Light_5_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="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_Dark" Fill="#FF3F3F3F" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Rectangle x:Name="Background_ShiftLights" Fill="Black" Height="101" Stroke="Black" Width="498" Canvas.Left="742" Canvas.Top="88"/>
        <Rectangle x:Name="Background_MFD" Fill="#FF686868" Height="512" Canvas.Left="34" Canvas.Top="104" Width="632"/>
        <Rectangle x:Name="Background_Gear" Fill="Black" Height="128" Canvas.Left="685" Canvas.Top="288.5" Width="104"/>
        <Image x:Name="MFD_Background" Height="512" Canvas.Left="84" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_MFD_background.png" Stretch="Fill" Canvas.Top="104" Width="512" RenderTransformOrigin="0.5,0.5">
        	<Image.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Image.RenderTransform>
        </Image>
        <Canvas x:Name="Fuel" Canvas.Left="257.5" Canvas.Top="398" Height="168" Width="256">
            <Image x:Name="Fuel_Gauge" Height="40" Canvas.Left="-127" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_Carrot.png" Stretch="Fill" Canvas.Top="99.5" Width="14" RenderTransformOrigin="0.5,0.5">
            	<Image.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Image.RenderTransform>
            </Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="419.793" Canvas.Top="483.501" Text="{Binding Speed}" Width="136.416" FontSize="53.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="626.126" Canvas.Top="303.603" Text="{Binding Gear}" Width="136.416" FontSize="96" Style="{StaticResource TextBlockStyle}" FontFamily="DG2_LCD" Foreground="#FFFEE221"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="267.5" Canvas.Top="499.511" Text="{Binding Odometer}" Width="180" FontSize="32" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Current_Lap" Canvas.Left="305.485" Canvas.Top="277.5" Text="{Binding CurLapTime}" FontSize="28" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="150"/>
			<local:FastTextBlock x:Name="Text_Last_Lap" Canvas.Left="252.485" Canvas.Top="332.5" Text="{Binding LastLapTime}" FontSize="28" Style="{StaticResource TextBlockStyle}" Width="180" FontFamily="DG1_Arial" 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_Best_Lap" Canvas.Left="281.485" Canvas.Top="387.5" Text="{Binding BestLapTime}" FontSize="28" Style="{StaticResource TextBlockStyle}" Width="150" FontFamily="DG1_Arial" 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_Place_Min" Canvas.Left="302.485" Canvas.Top="221.5" Text="{Binding CurPlace}" FontSize="28" Style="{StaticResource TextBlockStyle}" Width="50" FontFamily="DG1_Arial"/>
			<local:FastTextBlock x:Name="Text_Place_Max" Canvas.Left="365.485" Canvas.Top="221.5" Text="{Binding MaxPlaces}" FontSize="28" Style="{StaticResource TextBlockStyle}" Width="50" FontFamily="DG1_Arial" TextAlignment="Left"/>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="89.333" Width="574" Canvas.Left="701.339" Canvas.Top="79.666">
        	<Image x:Name="Red_Light_Null" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="39.5" Canvas.Left="51.33" Opacity="0.5"/>
        	<Image x:Name="Yellow_Light_Null" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_YellowLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="39.5" Canvas.Left="460.553" Opacity="0.5"/>
        	<Canvas x:Name="OFF">
	        	<Image x:Name="Red_Light_1_Off" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="137.331" Opacity="0.5"/>
	        	<Image x:Name="Red_Light_2_Off" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="196.662" Opacity="0.5"/>
	        	<Image x:Name="Red_Light_3_Off" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="256.667" Opacity="0.5"/>
	        	<Image x:Name="Red_Light_4_Off" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="316.002" Opacity="0.5"/>
	        	<Image x:Name="Red_Light_5_Off" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="376.002" Opacity="0.5"/>
        	</Canvas>
        	<Canvas x:Name="ON">
	        	<Image x:Name="Red_Light_1_On" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="137.331" Opacity="0"/>
	        	<Image x:Name="Red_Light_2_On" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="196.662" Opacity="0"/>
	        	<Image x:Name="Red_Light_3_On" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="256.667" Opacity="0"/>
	        	<Image x:Name="Red_Light_4_On" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="316.002" Opacity="0"/>
	        	<Image x:Name="Red_Light_5_On" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="376.002" Opacity="0"/>
        	</Canvas>
        	<Canvas x:Name="FLASHING" Visibility="Hidden">
	        	<Image x:Name="Red_Light_1_Flashing" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="137.331"/>
	        	<Image x:Name="Red_Light_2_Flashing" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="196.662"/>
	        	<Image x:Name="Red_Light_3_Flashing" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="256.667"/>
	        	<Image x:Name="Red_Light_4_Flashing" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="316.002"/>
	        	<Image x:Name="Red_Light_5_Flashing" Height="64" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="11.335" Canvas.Left="376.002"/>
        	</Canvas>
        </Canvas>
        <Image x:Name="Oil_Pressure" Height="40" Canvas.Left="200" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_Carrot.png" Stretch="Fill" Canvas.Top="230" Width="14"/>
        <Image x:Name="Water_Temp" Height="40" Canvas.Left="216" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_Carrot.png" Stretch="Fill" Canvas.Top="314.5" Width="14"/>
        <Image x:Name="Oil_Temp" Height="40" Canvas.Left="195" Source="game:/media/cars/FER_Enzo_02/UI/Textures/FER_Enzo_02_Carrot.png" Stretch="Fill" Canvas.Top="401.5" Width="14"/>
        <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 Tach}" Target="{StaticResource Shift Lights Progress}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		
		
	</Canvas>
</Page>