<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.ITA_Zerouno_18">
	
    <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="False" UsePsi="True" MaxBoost="13" MinBoost="1" MaxSpeed="100.08" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="False" MaxFuel="15.0" MinGear="-1" MaxGear="6" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-111.885"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="111.787"/>
			</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>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="White_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="G Accel Horizontal">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Horizontal">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="167"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="G Accel Vertical">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-170"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
			<BeginStoryboard Storyboard="{StaticResource G Accel Horizontal}"/>
			<BeginStoryboard Storyboard="{StaticResource G Accel Vertical}"/>
		</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" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
		<Rectangle x:Name="Background_Grey" Fill="Black" Height="600" Canvas.Top="7" Width="1280"/>
		<Canvas x:Name="Fuel_Animation" Height="105" Canvas.Left="920" Canvas.Top="464" Width="302.666">
			<Rectangle x:Name="Background" Fill="#FF02267E" Height="32" Canvas.Left="45" Canvas.Top="32" Width="227"/>
			<Rectangle x:Name="White_Fill" Fill="White" Height="24" Canvas.Left="47.331" Canvas.Top="36.337" Width="213.667" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Image x:Name="Graphics" Height="469" Canvas.Left="25.334" Source="game:/media/cars/ITA_Zerouno_18/UI/Textures/ITA_Zerouno_18_Graphics.png" Stretch="Fill" Canvas.Top="123.333" Width="1230"/>
		<Canvas x:Name="Tach" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
			<Image x:Name="Needle" Height="99" Canvas.Left="585.665" Source="game:/media/cars/ITA_Zerouno_18/UI/Textures/ITA_Zerouno_18_needle.png" Stretch="Fill" Canvas.Top="197.666" Width="109" RenderTransformOrigin="0.5,1.936">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-111.885"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="459" Canvas.Top="521.27" Text="{Binding Time}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="643.5" Canvas.Top="521.27" Text="{Binding ExternalTemp}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="540.25" Canvas.Top="316.493" Text="{Binding Speed}" FontSize="61.333" Style="{StaticResource TextBlockStyle}" Width="200" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0.6"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="565" Canvas.Top="392" Text="{Binding Gear}" FontSize="42.667" Style="{StaticResource TextBlockStyle}" Width="150" FontFamily="Moire" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.3"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel" Canvas.Left="961.001" Canvas.Top="232.665" Text="{Binding GAccelText}" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_01" Canvas.Left="845.666" Canvas.Top="339.333" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_02" Canvas.Left="961.664" Canvas.Top="444.934" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_G_Accel_Null_03" Canvas.Left="1078.333" Canvas.Top="339.333" Text="0.0" FontSize="29.333" Style="{StaticResource TextBlockStyle}" Width="120" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="604.5" Canvas.Top="485.106" Text="{Binding Odometer}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="150" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
			<local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="432" Canvas.Top="485.106" Text="{Binding TripMeter}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="150" FontFamily="DG1_Arial" Foreground="White" RenderTransformOrigin="0.5,0.5" TextAlignment="Right"/>
		</Canvas>
		<Canvas x:Name="G_Meter" Height="15" Canvas.Left="933" Canvas.Top="435.59" Width="15">
			<Canvas x:Name="Vertical" Height="15" Canvas.Left="0" Canvas.Top="0" Width="15" RenderTransformOrigin="0.5,0.5">
				<Canvas.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Canvas.RenderTransform>
				<Canvas x:Name="Horizontal" Height="15" Canvas.Left="0" Canvas.Top="0" Width="15" RenderTransformOrigin="0.5,0.5">
					<Canvas.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Canvas.RenderTransform>
					<Image x:Name="Marker" Height="15" Source="game:/media/cars/ITA_Zerouno_18/UI/Textures/ITA_Zerouno_18_marker.png" Stretch="Fill" Width="15"/>
				</Canvas>
			</Canvas>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
		<local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
	
		
	</Canvas>
</Page>