<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_MacanTurbo_19">
	
    <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="False" MaxBoost="5.8" MinBoost="0" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="23.7" 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>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
			<BeginStoryboard Storyboard="{StaticResource Boost Analog}"/>
		</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>
		<Image x:Name="Center_Stack_Icon" Height="125" Canvas.Left="100" Source="game:/media/cars/POR_MacanTurbo_19/UI/Textures/POR_MecanTurbo_15.png" Stretch="Fill" Canvas.Top="120" Width="353" Visibility="Hidden"/>
		<Image x:Name="Center_Stack_Badge" Height="261" Canvas.Left="92" Source="game:/media/cars/POR_MacanTurbo_19/UI/Textures/POR_MecanTurbo_15_Badge.png" Stretch="Fill" Canvas.Top="41" Width="350" RenderTransformOrigin="0.5,0.5">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="0.4" ScaleY="0.4"/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
        <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>
		<Canvas x:Name="Boost_Animation" Height="320" Canvas.Left="848" Canvas.Top="200" Width="368">
			<Rectangle x:Name="Black" Fill="Black" Height="120" Canvas.Left="32" Canvas.Top="72" Width="256"/>
			<Rectangle x:Name="Fill" Fill="White" Height="32" Canvas.Left="113" Canvas.Top="112" Width="96" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
        <Image x:Name="Background_Graphics" Height="355" Canvas.Left="877.5" Source="game:/media/cars/POR_MacanTurbo_19/UI/Textures/POR_MecanTurbo_15_graphics.png" Stretch="Fill" Canvas.Top="190" Width="320"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="112.683" Canvas.Top="481.511" Text="{Binding Odometer}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Clock_2" Canvas.Left="911.851" Canvas.Top="70.237" Text="{Binding Time}" Width="150" FontSize="34.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="889.851" Canvas.Top="480.237" Text="{Binding Time}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="889.851" Canvas.Top="507.103" Text="{Binding ExternalTemp}" Width="150" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White"/>
			<local:FastTextBlock x:Name="Water_Temp_Null" Canvas.Left="974" Canvas.Top="347.344" Text="88" Width="133" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Oil_Temp_Null" Canvas.Left="1006.333" Canvas.Top="395.307" Text="98" Width="100" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Oil_Pressure_Null" Canvas.Left="1005.333" Canvas.Top="438.631" Text="3.0" Width="100" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="112.683" Canvas.Top="522.011" Text="{Binding TripMeter}" Width="250" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="488.683" Canvas.Top="428.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="243.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="243.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_kmh" Height="20" Canvas.Left="688.333" Source="game:/media/cars/POR_MacanTurbo_19/UI/Textures/POR_MecanTurbo_15_txt_mph.png" Stretch="Fill" Canvas.Top="462.436" Width="60" 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_km" Height="20" Canvas.Left="366.677" Source="game:/media/cars/POR_MacanTurbo_19/UI/Textures/POR_MecanTurbo_15_txt_mi.png" Stretch="Fill" Canvas.Top="507.44" Width="34" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<local:FastTextBlock x:Name="Txt_Boost" Canvas.Left="974" Canvas.Top="304" Text="{Binding BoostText}" Width="133" FontSize="30.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<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 BoostAnim}" Target="{StaticResource Boost Analog}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>