<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_599GTO_11">
	
    <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="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="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="True" MaxFuel="20" MaxGear="8" MaxRpm="9500"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill1">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="140"/>
			</DoubleAnimationUsingKeyFrames>
		</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>
		<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.911" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_1_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.8" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.911" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_2_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.825" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.911" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_3_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.85" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.911" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_4_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.875" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.911" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Red_Light_5_On">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.9" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.911" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
		</EventTrigger>
	</Page.Triggers>
	
	    <local:EventFire.FzTriggers>
    <local:EventFireTrigger Event="StartUp" Storyboard="{StaticResource Start Up Animation}"/>
    </local:EventFire.FzTriggers>
	  

	<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.Top="0"/>
        <Grid x:Name="MFD_Graphics" Height="512" Canvas.Left="18" Canvas.Top="169" Width="600">
        	<Rectangle x:Name="Background_White" Margin="0.827,0.992,-0.827,-0.992" Fill="White" />
        	<Canvas x:Name="Fuel" Height="168" Margin="28,0,0,79" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="256">
        		<Rectangle x:Name="Fill1" Canvas.Top="89.667" Fill="#FFFF8E2A" Height="18" Width="140" RenderTransformOrigin="0.5,0.5" Canvas.Left="63">
        			<Rectangle.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Rectangle.RenderTransform>
        		</Rectangle>
        	</Canvas>
        	<Rectangle x:Name="Black_Square" Fill="Black" HorizontalAlignment="Left" Height="50" Margin="47.999,0,0,178.333" VerticalAlignment="Bottom" Width="50"/>
        	<Rectangle x:Name="Orange_Background" Fill="#FFFF8E2A" Height="28" Margin="244,0,280.999,133.673" VerticalAlignment="Bottom" Width="75" />
        	<Image x:Name="MFD_Graphics_1" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_MFD.PNG" Stretch="Fill" Margin="13.5,-21.5,74.5,21.5"/>
        	<Rectangle x:Name="Shift_Lights_Background" Fill="Black" Height="126" Margin="-4.514,-163.5,4.514,0" VerticalAlignment="Top"/>
        	<Rectangle x:Name="Line_1_Alias_1" Fill="Black" Height="3" Margin="5.165,86.656,94.835,0" VerticalAlignment="Top" Width="500" Opacity="0.3"/>
        	<Rectangle x:Name="Line_1_Alias_2" Fill="Black" Height="3" Margin="5.165,90.656,94.835,0" VerticalAlignment="Top" Width="500" Opacity="0.3"/>
        	<Rectangle x:Name="Line_1" Fill="Black" Height="3" Margin="5.165,88.656,94.835,0" VerticalAlignment="Top" Width="500"/>
        	<Rectangle x:Name="Line_2_Alias_1" Fill="Black" Margin="0.486,0,38.514,170.384" Width="561" Height="3" VerticalAlignment="Bottom" Opacity="0.3"/>
        	<Rectangle x:Name="Line_2_Alias_2" Fill="Black" Margin="0.486,0,38.514,166.384" Width="561" Height="3" VerticalAlignment="Bottom" Opacity="0.3"/>
        	<Rectangle x:Name="Line_2" Fill="Black" Margin="0.486,0,38.514,168.384" Width="561" Height="3" VerticalAlignment="Bottom"/>
        	<Image x:Name="OilTemp_Needle" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeNeedle.png" Stretch="Fill" Width="16" HorizontalAlignment="Right" Margin="0,214.618,208.499,233.382" RenderTransformOrigin="0.5,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-14.123"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="WaterTemp_Needle" Height="64" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeNeedle.png" Stretch="Fill" Width="16" HorizontalAlignment="Right" Margin="0,100,208.833,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="36.98"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        	<Image x:Name="WaterTemp_Hub" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeHub.PNG" Stretch="Fill" Width="32" HorizontalAlignment="Right" Margin="0,147.499,200.832,0" Height="32" VerticalAlignment="Top">
        		<Image.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeHub.png"/>
        		</Image.OpacityMask>
        	</Image>
        	<Image x:Name="OilTemp_Hub" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeHub.PNG" Stretch="Fill" Width="32" HorizontalAlignment="Right" Margin="0,0,200.832,217.616" Height="32" VerticalAlignment="Bottom">
        		<Image.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_GaugeHub.png"/>
        		</Image.OpacityMask>
        	</Image>
        </Grid>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_External_Temp" Canvas.Left="109.5" Canvas.Top="208.5" Text="{Binding ExternalTemp}" FontSize="42.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="Black" Width="200"/>
            <TextBlock x:Name="Text_Clock" Canvas.Left="-7.836" Canvas.Top="208.5" Text="{Binding Time}" FontSize="42.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="Black" Width="180"/>
            <TextBlock x:Name="Text_Speed" Canvas.Left="415.793" Canvas.Top="533.501" Text="{Binding Speed}" Width="110" FontSize="53.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
			<TextBlock x:Name="Text_Gear" Canvas.Left="893" Canvas.Top="333" Text="{Binding Gear}" Width="80" FontSize="64" Style="{StaticResource TextBlockStyle}" Foreground="#FFFF8E2A" FontFamily="DG2_LCD" TextAlignment="Center"/>
			<Image x:Name="Gear_Graphics" Height="32" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_Gear.png" Stretch="Fill" Width="44" Canvas.Left="916" Canvas.Top="371"/>
            <TextBlock x:Name="Text_Odometer" Canvas.Left="260.5" Canvas.Top="547.511" Text="{Binding Odometer}" Width="160" FontSize="32" Style="{StaticResource TextBlockStyle}" Foreground="Black" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="32" Width="600" Canvas.Left="21" Canvas.Top="48">
        	<Canvas x:Name="OFF" Height="32" Width="600">
        		<Image x:Name="Red_Light_1_Off" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_Off.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="147" Opacity="0.25"/>
        		<Image x:Name="Red_Light_2_Off" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_Off.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="207" Opacity="0.25"/>
        		<Image x:Name="Red_Light_3_Off" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_Off.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="267" Opacity="0.25"/>
        		<Image x:Name="Red_Light_4_Off" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_Off.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="326" Opacity="0.25"/>
        		<Image x:Name="Red_Light_5_Off" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_Off.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="386" Opacity="0.25"/>
        	</Canvas>
        	<Canvas x:Name="ON" Height="32" Width="600">
        		<Image x:Name="Red_Light_1_On" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="147" Visibility="Hidden"/>
        		<Image x:Name="Red_Light_2_On" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="207" Visibility="Hidden"/>
        		<Image x:Name="Red_Light_3_On" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="267" Visibility="Hidden"/>
        		<Image x:Name="Red_Light_4_On" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="326" Visibility="Hidden"/>
        		<Image x:Name="Red_Light_5_On" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="386" Visibility="Hidden"/>
        	</Canvas>
        	<Canvas x:Name="FLASHING" Height="32" Width="600" Visibility="Hidden">
        		<Image x:Name="Red_Light_1_Flashing" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="147"/>
        		<Image x:Name="Red_Light_2_Flashing" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="207"/>
        		<Image x:Name="Red_Light_3_Flashing" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="267"/>
        		<Image x:Name="Red_Light_4_Flashing" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="326"/>
        		<Image x:Name="Red_Light_5_Flashing" Height="100" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_RedLight_On.PNG" Stretch="Fill" Width="100" Canvas.Top="-34" Canvas.Left="386"/>
        	</Canvas>
        </Canvas>
        <Grid x:Name="Warning_Lights" Height="600" Canvas.Left="685" Canvas.Top="59" Width="550">
        	<Image x:Name="Warning_Lights_1" Height="150" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_WarningLights01.PNG" Stretch="Fill" Width="200" HorizontalAlignment="Right" Margin="0,44.5,21,0" VerticalAlignment="Top" Opacity="0.05"/>
        	<Image x:Name="Warning_Lights_2" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_WarningLights02.PNG" Stretch="Fill" Width="50" HorizontalAlignment="Left" Margin="45.667,240.833,0,279.167" Opacity="0.05"/>
        	<Image x:Name="Warning_Lights_3" Height="140" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_WarningLights03.PNG" Stretch="Fill" Width="90" HorizontalAlignment="Left" Margin="86.834,0,0,32.668" VerticalAlignment="Bottom" Opacity="0.05"/>
        	<Image x:Name="Warning_Lights_4" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_WarningLights04.PNG" Stretch="Fill" Width="150" HorizontalAlignment="Right" Margin="0,0,63.333,73.167" Height="150" VerticalAlignment="Bottom" Opacity="0.05"/>
        	<Image x:Name="Warning_Lights_5" HorizontalAlignment="Left" Height="40" Margin="59,44.5,0,0" Source="game:/media/cars/FER_599GTO_11/UI/Textures/FER_599GTO_11_Signal_Lights.png" Stretch="Fill" VerticalAlignment="Top" Width="182" Opacity="0.05"/>
        </Grid>
        <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 Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Shift Lights Progress}"/>
		
		
	</Canvas>
</Page>