<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.PEU_207Super2000_07">
	
    <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="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="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MaxGear="8" MaxRpm="8000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge"/>
		<Storyboard x:Key="Shift Lights Progress">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Green_Light_1_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.591" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.598" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Yellow_Light_1_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.696" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.704" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Red_Light_1_On">
				<EasingDoubleKeyFrame KeyTime="0:0:0.81" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.818" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Green_Light_1_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.598" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.835" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Yellow_Light_1_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.704" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.835" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_1_On">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.818" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.835" 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.835" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Green_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="Yellow_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_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>
		</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_Black" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_GaugeDisplay" Fill="#FF201820" Height="200" Canvas.Left="325" Canvas.Top="260" Width="630"/>
        <Canvas x:Name="NavScreen" Height="128" Canvas.Left="569" Canvas.Top="319" Width="3">
        	<Rectangle x:Name="RedLine" Fill="#FFDA3D25" Height="128" Width="3"/>
        	<Rectangle x:Name="RedLine_Copy" Fill="#FFDA3D25" Height="33.334" Width="3" Canvas.Top="-42"/>
        	<Rectangle x:Name="RedLine_Copy1" Fill="#FFDA3D25" Height="3" Width="372.333" Canvas.Top="-8" Canvas.Left="3.667"/>
        	<Rectangle x:Name="RedLine_Copy2" Fill="#FFDA3D25" Height="2" Width="7.75" Canvas.Top="-27" Canvas.Left="341.667"/>
        	<Rectangle x:Name="RedLine_Copy3" Fill="#FFDA3D25" Height="2" Width="7.75" Canvas.Top="-16.125" Canvas.Left="341.667"/>
        	<Rectangle x:Name="RedLine_Copy4" Fill="#FFDA3D25" Height="8.375" Width="2" Canvas.Top="-24.875" Canvas.Left="339.292"/>
        	<Rectangle x:Name="RedLine_Copy5" Fill="#FFDA3D25" Height="2" Width="5.5" Canvas.Top="-41.875" Canvas.Left="341.667"/>
        	<Rectangle x:Name="RedLine_Copy6" Fill="#FFDA3D25" Height="2" Width="5.5" Canvas.Top="-33" Canvas.Left="341.667"/>
        	<Rectangle x:Name="RedLine_Copy7" Fill="#FFDA3D25" Height="6.375" Width="2" Canvas.Top="-39.75" Canvas.Left="339.292"/>
        	<Rectangle x:Name="RedLine_Copy8" Fill="#FFDA3D25" Height="6.375" Width="2" Canvas.Top="-39.75" Canvas.Left="347.417"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Temp" Canvas.Left="806.193" Canvas.Top="265.166" Text="{Binding ExternalTemp}" Width="98.333" FontSize="28" Style="{StaticResource TextBlockStyle}" Foreground="#FFDA3D25" FontFamily="DG4_PF_Ronda_Seven" Height="52.261" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="363.859" Canvas.Top="322.5" Text="{Binding Time}" FontSize="64" Style="{StaticResource TextBlockStyle}" Foreground="#FFDA3D25" FontFamily="DG1_Arial" Width="177.333"/>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="32" Width="600" Canvas.Left="341" Canvas.Top="154.5">
        	<Canvas x:Name="OFF" Height="32" Width="600">
        		<Image x:Name="Green_Light_1_Off" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_GreenLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="222" RenderTransformOrigin="0.5,0.5" Opacity="0.25" OpacityMask="Black">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Yellow_Light_1_Off" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_YellowLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="268" RenderTransformOrigin="0.5,0.5" Opacity="0.25">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.1" ScaleY="2.1"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Red_Light_1_Off" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_RedLight_Off.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="315" RenderTransformOrigin="0.5,0.5" Opacity="0.25">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        	</Canvas>
        	<Canvas x:Name="ON" Height="32" Width="600">
        		<Image x:Name="Green_Light_1_On" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_GreenLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="222" Opacity="0" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Yellow_Light_1_On" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_YellowLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="268" Opacity="0" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.1" ScaleY="2.1"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Red_Light_1_On" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="315" Opacity="0" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        	</Canvas>
        	<Canvas x:Name="FLASHING" Height="32" Width="600" Visibility="Hidden">
        		<Image x:Name="Green_Light_1_Flashing" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_GreenLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="222" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Yellow_Light_1_Flashing" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_YellowLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="268" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.1" ScaleY="2.1"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="Red_Light_1_Flashing" Height="64" Source="game:/media/cars/PEU_207Super2000_07/UI/Textures/TVR_Sagaris_05_RedLight_On.PNG" Stretch="Fill" Width="64" Canvas.Top="-15" Canvas.Left="315" RenderTransformOrigin="0.5,0.5">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="2.2" ScaleY="2.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        	</Canvas>
        </Canvas>
        <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>