<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.POR_911GT3RS_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="12" MinBoost="-11" MaxSpeed="120" 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="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<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="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="123"/>
			</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="-121"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<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_Grey" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Odo" Fill="Black" Height="91.538" Width="293.846" Canvas.Left="96.077" Canvas.Top="488.671" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="Background_Speed" Fill="Black" Height="100.768" Width="287.692" Canvas.Left="496.154" Canvas.Top="421.056" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="Background_Gear" Fill="Black" Height="141.538" Width="67.692" Canvas.Left="606.154" Canvas.Top="254.171" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="Background_MFD" Fill="Black" Height="309.23" Width="307.692" Canvas.Left="879.154" Canvas.Top="217.325" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1.3" ScaleY="1.3"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Image x:Name="Badge_Graphic" Height="122.153" Canvas.Left="164.333" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_Cayenne_12_Badge.png" Stretch="Fill" Canvas.Top="111.392" Width="159.018"/>
        <Image x:Name="Graphics_Main" Height="417" Canvas.Left="816" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_911GT3RS_18_Graphics.png" Stretch="Fill" Canvas.Top="185" Width="378"/>
		<Canvas x:Name="G_Meter" Height="22" Canvas.Left="954" Canvas.Top="441" Width="22">
			<Canvas x:Name="Vertical" Height="22" Canvas.Left="0" Canvas.Top="0" Width="22" RenderTransformOrigin="0.5,0.5">
				<Canvas.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Canvas.RenderTransform>
				<Canvas x:Name="Horizontal" Height="22" Canvas.Left="0" Canvas.Top="0" Width="22" RenderTransformOrigin="0.5,0.5">
					<Canvas.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Canvas.RenderTransform>
					<Image x:Name="Marker" Height="22" Canvas.Left="0" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_911GT3RS_18_Marker.png" Stretch="Fill" Canvas.Top="0" Width="22"/>
				</Canvas>
			</Canvas>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="88.683" Canvas.Top="472.511" Text="{Binding Odometer}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="914" Canvas.Top="495" Text="{Binding Time}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="900" Canvas.Top="526" Text="{Binding ExternalTemp}" Width="150" FontSize="26.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="88.683" Canvas.Top="513.011" Text="{Binding TripMeter}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="497.683" Canvas.Top="604.011" Text="{Binding Speed}" Width="200" FontSize="82.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="581.183" Canvas.Top="238.011" Text="{Binding Gear}" Width="120" FontSize="106.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center"/>
			<local:FastTextBlock x:Name="Text_Gear_Background" Canvas.Left="581.183" Canvas.Top="238.011" Text="8" Width="120" FontSize="106.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center" Opacity="0.1"/>
			<Image x:Name="Graphics_mi" Height="20" Canvas.Left="341.5" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_Cayenne_12_txt_mi.png" Stretch="Fill" Canvas.Top="499.5" Width="28" Visibility="Hidden"/>
			<Image x:Name="Graphics_mph" Height="16" Canvas.Left="693.5" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_Cayenne_12_txt_mph.png" Stretch="Fill" Canvas.Top="448" Width="44" Visibility="Hidden"/>
			<Image x:Name="Graphics_Km" Height="24" Canvas.Left="345.683" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_911GT3RS_18_txt_km.png" Stretch="Fill" Canvas.Top="499.5" Width="32"/>
			<Image x:Name="Graphics_kmh" Height="20" Canvas.Left="704" Source="game:/media/cars/POR_911GT3RS_18/UI/Textures/POR_911GT3RS_18_txt_kph.png" Stretch="Fill" Canvas.Top="650" Width="46"/>
			<local:FastTextBlock x:Name="Text_G_Meter" Canvas.Left="909" Canvas.Top="463.403" Text="{Binding GAccelText}" Width="150" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="#FFDADBFF">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8"/>
						<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 GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
		<local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
	</Canvas>
</Page>