<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_CaymanGTS_15">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="True" UseMPH="TRue" UsePsi="False" MaxBoost="13.2" MinBoost="-11" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" 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="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fuel_Fill_Orange">
				<EasingDoubleKeyFrame KeyTime="0" Value="-25"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.134" Value="-18.449"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Fuel_Fill_White">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.134" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fuel_Fill_White">
				<EasingDoubleKeyFrame KeyTime="0:0:0.134" Value="-18.485"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="25.374"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
		</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="143.844" Width="323.478" Canvas.Left="81.261" Canvas.Top="462.518" 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="178.46" Width="316.924" Canvas.Left="476.538" Canvas.Top="417.71" 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>
        <Canvas x:Name="Fuel_Animation" Height="393" Canvas.Left="830" Canvas.Top="168" Width="403">
        	<Rectangle x:Name="Fuel_Fill_White" Fill="#FFD9ECFD" Height="188" Canvas.Left="-2.5" Canvas.Top="16.5" Width="188" RenderTransformOrigin="1,1" Visibility="Hidden">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-18.485"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Fuel_Fill_Orange" Fill="#FFFF6342" Height="188" Canvas.Left="-2.5" Canvas.Top="16.5" Width="188" RenderTransformOrigin="1,1">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-25"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Left_Mask" Fill="Black" Height="355" Canvas.Left="-66.667" Canvas.Top="22" Width="114.5"/>
        	<Rectangle x:Name="Top_Mask" Fill="Black" Height="136.5" Canvas.Left="-67" Canvas.Top="-114.5" Width="434.5"/>
        </Canvas>
        <Image x:Name="Background_Graphics" Height="355" Canvas.Left="877.5" Source="game:/media/cars/POR_CaymanGTS_15/UI/Textures/POR_CaymanGTS_15_graphics.png" Stretch="Fill" Canvas.Top="190" Width="320" />
		<Canvas x:Name="Text" Height="720" Width="1280">
			<TextBlock x:Name="Text_Odometer" Canvas.Left="94.683" Canvas.Top="470.511" Text="{Binding Odometer}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Text_Clock_2" Canvas.Left="911.851" Canvas.Top="65.237" Text="{Binding Time}" Width="150" FontSize="34.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Text_Clock" Canvas.Left="889.851" Canvas.Top="479.237" Text="{Binding Time}" Width="150" FontSize="33.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Text_External_Temp" Canvas.Left="889.851" Canvas.Top="506.103" Text="{Binding ExternalTemp}" Width="150" FontSize="33.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Water_Temp_Null" Canvas.Left="1004" Canvas.Top="299.344" Text="190" Width="133" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Oil_Temp_Null" Canvas.Left="1035.333" Canvas.Top="344.307" Text="210" Width="100" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Oil_Pressure_Null" Canvas.Left="1034.333" Canvas.Top="391.631" Text="44" Width="100" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_TripMeter" Canvas.Left="95.683" Canvas.Top="511.011" Text="{Binding TripMeter}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<TextBlock x:Name="Text_Speed" Canvas.Left="488.683" Canvas.Top="412.011" Text="{Binding Speed}" Width="200" FontSize="82.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Gear" Canvas.Left="581.183" Canvas.Top="236.011" Text="{Binding Gear}" Width="120" FontSize="106.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center"/>
			<TextBlock x:Name="Text_Gear_Background" Canvas.Left="581.183" Canvas.Top="236.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="Txt_mph" Height="18" Canvas.Left="688.333" Source="game:/media/cars/POR_CaymanGTS_15/UI/Textures/POR_CaymanGTS_15_txt_mph.png" Stretch="Fill" Canvas.Top="446.436" Width="52" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Txt_mi" Height="20" Canvas.Left="353.677" Source="game:/media/cars/POR_CaymanGTS_15/UI/Textures/POR_CaymanGTS_15_txt_mi.png" Stretch="Fill" Canvas.Top="499.44" Width="29"/>
		</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 Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>