<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.PAG_ZondaR_HE_10">
	
    <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" HasTachMem="False" HasClock="False" HasExternalTemp="False" UseDegreesF="True" UseMPH="False" UsePsi="True" MinBoost="0" MaxBoost="0" MaxSpeed="90.82" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20.6" MinGear="-1" MaxGear="1" MaxRpm="10400.0"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Color_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.096" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.865" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Color_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.096" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.193" Value="0.13"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.288" Value="0.25"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.384" Value="0.375"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.481" Value="0.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.578" Value="0.625"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.673" Value="0.75"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.769" Value="0.872"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.865" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-226.986"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.094" Value="-217.929"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.191" Value="-209.462"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.288" Value="-200.398"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.384" Value="-191.255"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.481" Value="-155.9"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.576" Value="-120.197"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.673" Value="-84.86"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.769" Value="-49.164"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.865" Value="-13.715"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.961" Value="21.457"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="49.262"/>
			</DoubleAnimationUsingKeyFrames>
		</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>
	
		<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" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Green" Fill="#FF578D4E" Height="120" Canvas.Left="376" Canvas.Top="216" Width="526"/>
        <Image x:Name="Analog_Graphics" Height="335" Canvas.Left="944" Source="game:/media/cars/PAG_ZondaR_HE_10/UI/Textures/PAG_ZondaR_10_Tach_Analog.PNG" Stretch="Fill" Canvas.Top="184" Width="308"/>
        <Canvas x:Name="Tach_Animation" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
        	<Rectangle x:Name="Color_Fill" Fill="#FFFDF969" Height="96" Canvas.Left="380.002" Canvas.Top="224.667" Width="520" RenderTransformOrigin="0,0.5">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="0"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Image x:Name="Needle" Height="148" Canvas.Left="1106.5" Source="game:/media/cars/PAG_ZondaR_HE_10/UI/Textures/PAG_ZondaR_10_Needle.PNG" Stretch="Fill" Canvas.Top="204.25" Width="9" RenderTransformOrigin="0.5,1">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-226.986"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
		<Image x:Name="Main_Graphics" Height="338" Canvas.Left="376" Source="game:/media/cars/PAG_ZondaR_HE_10/UI/Textures/PAG_ZondaR_10_graphics.png" Stretch="Fill" Canvas.Top="198" Width="526"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="450.676" Canvas.Top="358" Text="{Binding Speed}" Width="180" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_POIL_Null" Canvas.Left="347.335" Canvas.Top="358" Text="3.4" Width="180" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="584.018" Canvas.Top="358" Text="{Binding Gear}" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_ABS_Null" Canvas.Left="684" Canvas.Top="358" Text="11" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Fuel_Pres_Null" Canvas.Left="791.337" Canvas.Top="358" Text="3.8" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_TOil_Null" Canvas.Left="384.667" Canvas.Top="465.04" Text="104" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_TCst_Null" Canvas.Left="705.34" Canvas.Top="465.04" Text="4" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Tmot_Null" Canvas.Left="791.337" Canvas.Top="465.04" Text="99" Width="100" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Lap_Time" Canvas.Left="452.65" Canvas.Top="467.04" Text="{Binding CurLapTime}" Width="260" FontSize="45.333" Style="{StaticResource TextBlockStyle}" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.85"/>
						<SkewTransform/>
						<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}"/>
	</Canvas>
</Page>