<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"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    mc:Ignorable="d"
	x:Class="DigitalGauge.MCL_P1_13"
	 >
	
    <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="20.6" MinBoost="-11.0" MaxSpeed="00" 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="00.0" MinGear="0" MaxGear="0" MaxRpm="9000.0"/>
        
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Boost_meter_endcapR">
				<EasingDoubleKeyFrame KeyTime="0" Value="-0.168"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="150.875"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Boost_meter_center">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="152.382"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Boost_meter_center">
				<EasingDoubleKeyFrame KeyTime="0" Value="-0.084"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="75.625"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_meter_endcapR">
				<EasingDoubleKeyFrame KeyTime="0" Value="-0.168"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="88"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fuel_meter_center">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="89.132"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_meter_center">
				<EasingDoubleKeyFrame KeyTime="0" Value="-0.084"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="44"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Tach">
			<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Clip).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)" Storyboard.TargetName="Tach_gradientArc">
				<EasingPointKeyFrame KeyTime="0" Value="42,-2"/>
				<EasingPointKeyFrame KeyTime="0:0:1" Value="522,-2"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Clip).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)" Storyboard.TargetName="Tach_gradientArc">
				<EasingPointKeyFrame KeyTime="0" Value="42,92"/>
				<EasingPointKeyFrame KeyTime="0:0:1" Value="522,92"/>
			</PointAnimationUsingKeyFrames>
		</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>
		<Image x:Name="MergedBG" Height="320" Canvas.Left="103" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_MergedBG.png" Stretch="Fill" Canvas.Top="208" Width="1092"/>
		<Image x:Name="Tach_gradientArc" Height="92" Canvas.Left="366" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_Tach-gradientArc.png" Stretch="Fill" Canvas.Top="218" Width="568">
			<Image.Clip>
				<PathGeometry>
					<PathFigure IsClosed="True" StartPoint="0.5,-1.5">
						<LineSegment Point="41.5,-1.5"/>
						<LineSegment Point="41.5,91.5"/>
						<LineSegment Point="0.5,91.5"/>
					</PathFigure>
				</PathGeometry>
			</Image.Clip>
		</Image>
		<Image x:Name="Tach_numbers" Height="68" Canvas.Left="384.167" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_Tach-numbers.png" Stretch="Fill" Canvas.Top="232.25" Width="532"/>
		<Canvas x:Name="Boost_Analog" Canvas.Left="567" Canvas.Top="422" Height="12" Width="157">
			<Image x:Name="Boost_meter_endcapL" Height="12" Canvas.Left="0" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_endcapL.png" Stretch="Fill" Canvas.Top="0" Width="2"/>
			<Image x:Name="Boost_meter_center" Height="12" Canvas.Left="2" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_center.png" Stretch="Fill" Canvas.Top="0" Width="1" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Boost_meter_endcapR" Height="12" Canvas.Left="3" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_endcapR.png" Stretch="Fill" Canvas.Top="0" Width="3" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Fuel" Canvas.Left="1054" Canvas.Top="459" Height="12" Width="94">
			<Image x:Name="Fuel_meter_endcapL" Height="12" Canvas.Left="0" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_endcapL.png" Stretch="Fill" Canvas.Top="0" Width="2"/>
			<Image x:Name="Fuel_meter_center" Height="12" Canvas.Left="2" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_center.png" Stretch="Fill" Canvas.Top="0" Width="1" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Fuel_meter_endcapR" Height="12" Canvas.Left="3" Source="game:/media/cars/MCL_P1_13/UI/Textures/MCL_P1_13_11_meter_endcapR.png" Stretch="Fill" Canvas.Top="0" Width="3" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="202" Canvas.Top="269" Text="{Binding Time}" FontSize="16" Style="{StaticResource TextBlockStyle}" Width="76" RenderTransformOrigin="0.5,0.5" Height="19.36"/>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="210.375" Canvas.Top="291.5" Text="{Binding ExternalTemp}" FontSize="16" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" Width="55.436" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="184.313" Canvas.Top="348.14" Text="{Binding Odometer}" Width="86.39" FontSize="16" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="189.995" Canvas.Top="371.89" Text="{Binding TripMeter}" Width="80.052" FontSize="16" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Speed" TextAlignment="Center" Canvas.Left="628.92" Canvas.Top="318.663" Text="{Binding Speed}" Width="136.416" FontSize="64" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" TextAlignment="Center" Canvas.Left="819.126" Canvas.Top="333.923" Text="{Binding Gear}" Width="69.374" FontSize="48" Style="{StaticResource TextBlockStyle}" Foreground="#FFEE9923"/>
			<local:FastTextBlock x:Name="Text_Static_Range_EV" Canvas.Left="217" Canvas.Top="422" Text="10" FontSize="16" Style="{StaticResource TextBlockStyle}" Width="43" RenderTransformOrigin="0.5,0.5" Height="19.36"/>
			<local:FastTextBlock x:Name="Text_Static_Range_Fuel" Canvas.Left="217" Canvas.Top="452" Text="225" FontSize="16" Style="{StaticResource TextBlockStyle}" Width="43" RenderTransformOrigin="0.5,0.5" Height="19.36"/>
			
		</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 Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>