<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="DigitalGauge.KOE_Agera_11"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="#FFD9F6FE"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="False" MaxBoost="2" MinBoost="-1" MaxSpeed="125" HasAbsLight="True" HasStmLight="True" HasTcsLight="True" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20" MaxGear="8" MaxRpm="8000"></local:DigitalGaugeConfig>
		
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Fill1">
				<EasingDoubleKeyFrame KeyTime="0" Value="-22"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="57"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Fill2">
				<EasingDoubleKeyFrame KeyTime="0" Value="47"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.333" Value="58"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="122"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Fill3">
				<EasingDoubleKeyFrame KeyTime="0" Value="-148"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-148"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-64"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Tach_Fill3">
				<EasingDoubleKeyFrame KeyTime="0" Value="-1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.667" Value="-1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Tach_Fill2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.333" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Tach_Fill3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.667" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Speedo Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-111"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="111"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.854"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-211.474"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-204.312"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-211.474"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Boost Analog">
			<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Clip).(PathGeometry.Figures)[0].(PathFigure.Segments)[0].(LineSegment.Point)" Storyboard.TargetName="Bar_Gauge">
				<EasingPointKeyFrame KeyTime="0" Value="112.708,26.625"/>
				<EasingPointKeyFrame KeyTime="0:0:0.5" Value="259.583000174522,26.75"/>
				<EasingPointKeyFrame KeyTime="0:0:1" Value="399.332999999999,25.875"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Clip).(PathGeometry.Figures)[0].(PathFigure.StartPoint)" Storyboard.TargetName="Bar_Gauge">
				<EasingPointKeyFrame KeyTime="0" Value="113.833,4"/>
				<EasingPointKeyFrame KeyTime="0:0:0.5" Value="259.145499937726,4.6875"/>
				<EasingPointKeyFrame KeyTime="0:0:1" Value="399.332999999995,5.625"/>
			</PointAnimationUsingKeyFrames>
			<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Clip).(PathGeometry.Figures)[0].(PathFigure.Segments)[1].(LineSegment.Point)" Storyboard.TargetName="Bar_Gauge">
				<EasingPointKeyFrame KeyTime="0" Value="108.583,26.75"/>
				<EasingPointKeyFrame KeyTime="0:0:0.5" Value="107.958000004661,26.75"/>
			</PointAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_Fill_01">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="55"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="73"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="92"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="105"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.376" Value="118"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="127.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="139"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.563" Value="151"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="162"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.685" Value="175.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="187"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.813" Value="203"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="221"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="247"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="280.5"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fuel_Fill_01">
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="45.085"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.188" Value="35.638"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="30.006"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="21.696"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.376" Value="16.119"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="4.793"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.563" Value="-6.382"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="-14.608"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.685" Value="-21.064"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="-29.418"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.813" Value="-36.282"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="-44.79"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="-50.609"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-58.136"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fuel_2">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="1.83"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.376" Value="1.887"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="1.966"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="2.091"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="2.371"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="2.564"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="2.774"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="2.918"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="3.117"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_2">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.313" Value="76.25"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.376" Value="81.5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.438" Value="88.75"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="100.25"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="126"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="143.75"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="163"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.938" Value="176.25"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="194.5"/>
			</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>
	</Page.Resources>
	  

	<Canvas x:Name="LayoutRoot" Background="#FF161C3D" Width="1280" Height="720">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="NightDaySplit">
				<VisualState x:Name="Day"/>
				<VisualState x:Name="Night"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>

		<Canvas x:Name="Tach" Canvas.Left="384.667" Canvas.Top="-56" Height="512" Width="512">
			<Canvas x:Name="Tach_Fill_Container" Height="416" Width="480" Canvas.Left="16" Canvas.Top="88" RenderTransformOrigin="0.5,0.5">
				<Canvas.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Canvas.RenderTransform>
				<Image x:Name="Tach_Fill1" Height="218" Canvas.Left="23" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Tach_Fill.png" Canvas.Top="208" Width="218" RenderTransformOrigin="1,-0.002" Stretch="Fill">
					<Image.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="-22"/>
							<TranslateTransform/>
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
				<Image x:Name="Tach_Fill2" Height="218" Canvas.Left="23" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Tach_Fill.png" Canvas.Top="208" Width="218" RenderTransformOrigin="1,-0.002" Stretch="Fill">
					<Image.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="-22"/>
							<TranslateTransform/>
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
				<Image x:Name="Tach_Fill3" Height="218" Canvas.Left="23" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Tach_Fill.png" Canvas.Top="208" Width="218" RenderTransformOrigin="1,-0.002" Stretch="Fill">
					<Image.RenderTransform>
						<TransformGroup>
							<ScaleTransform/>
							<SkewTransform/>
							<RotateTransform Angle="-22"/>
							<TranslateTransform/>
						</TransformGroup>
					</Image.RenderTransform>
				</Image>
			</Canvas>
			<Image x:Name="Tach_Graphics" Height="512" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Speedo.png" Stretch="Fill" Width="512" Canvas.Top="0" Canvas.Left="-2"/>
			<Image x:Name="Needle" Canvas.Left="105.001" Canvas.Top="299.336" Height="256"  Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Speedo_Needle.png" Stretch="Fill" Width="16" 
				RenderTransformOrigin="0.526,0.809">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-111"/>
						<TranslateTransform X="144.517" Y="-211.474"/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Speedo_Needle_Cover" Height="256" Canvas.Left="128" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Speedo_Needle_Cover.png" Stretch="Fill" Canvas.Top="167" Width="256"/>
			<Image x:Name="KPH" Height="16" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_KPH.png" Stretch="Fill" Width="64" Canvas.Top="287.583" Canvas.Left="223.75"/>
			<Image x:Name="Bar_Gauge" Height="32" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Bar_Gauge.png" Stretch="Fill" Canvas.Top="408.5" Width="512">
				<Image.Clip>
					<PathGeometry>
						<PathFigure IsClosed="True" StartPoint="399.332999999997,4.5">
							<LineSegment Point="401.208004243686,26.125"/>
							<LineSegment Point="107.958000004661,26.75"/>
							<LineSegment Point="108.83299969699,3.5"/>
						</PathFigure>
					</PathGeometry>
				</Image.Clip>
			</Image>
			<Image x:Name="Bar_Static" Height="32" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Bar_Static.png" Stretch="Fill" Canvas.Top="408.5" Width="512"/>
		</Canvas>
		<Canvas x:Name="PanelL" Height="512" Width="512" Canvas.Left="-59" Canvas.Top="229">
			<Rectangle x:Name="Fill" Fill="#FF5772A9" Height="229" Width="512" Canvas.Top="262"/>
			<Rectangle x:Name="Fill2" Fill="#FF5772A9" Height="258" Width="234"/>
			<Image x:Name="Left_Gauge" Height="512" Canvas.Left="0" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Left_Gauge.png" Stretch="Fill" Canvas.Top="0" Width="512"/>
			<Image x:Name="Small_NeedleL" Height="256" Canvas.Left="299.5" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Small_Needle.png" Stretch="Fill" Canvas.Top="34" Width="16" RenderTransformOrigin="0.514,0.743">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-96"/>
						<TranslateTransform X="-30.788" Y="50.824"/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Small_Needle_Cover" Height="128" Canvas.Left="213.5" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Small_Needle_Cover.png" Stretch="Fill" Canvas.Top="210.75" Width="128"/>
		</Canvas>
		<Canvas x:Name="PanelR" Height="512" Width="512" Canvas.Left="824.663" Canvas.Top="254.332">
			<Rectangle x:Name="Fuel_2" Fill="#FF5772A9" Height="135" Canvas.Left="-187.663" Canvas.Top="329.5" Width="183.663" RenderTransformOrigin="0.5,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Fuel_Fill_01" Fill="#FF5772A9" Height="181" Canvas.Left="-45.663" Canvas.Top="333.168" Width="148" RenderTransformOrigin="1,0">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="45.085"/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Fill_1" Fill="#FF5772A9" Height="186.75" Canvas.Left="296.337" Canvas.Top="-1" Width="159"/>
			<Image x:Name="Right_Gauge" Height="512" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Right_Gauge.png" Stretch="Fill" Canvas.Top="-1" Width="512"/>
			<Image x:Name="Small_NeedleR" Height="256" Canvas.Left="262.5" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Small_Needle.png" Stretch="Fill" Canvas.Top="9" Width="16" RenderTransformOrigin="0.514,0.743">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="100"/>
						<TranslateTransform X="-30.788" Y="50.824"/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
			<Image x:Name="Small_Needle_CoverR" Height="128" Canvas.Left="176.5" Source="game:/media/cars/KOE_Agera_11/UI/Textures/KOE_Agera_11_Small_Needle_Cover.png" Stretch="Fill" Canvas.Top="185.75" Width="128"/>
			<Rectangle x:Name="Mask" Fill="#FF161C3D" Height="240.832" Canvas.Left="-255.663" Canvas.Top="223.668" Width="276.663"/>
		</Canvas>

		
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="600" Canvas.Top="198" Width="79" FontSize="29.333" TextAlignment="Center" Style="{StaticResource TextBlockStyle}" Text="{Binding Speed}"/>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="618" Canvas.Top="252" Text="{Binding Gear}" Width="45.416" FontSize="29.333" TextAlignment="Center" Style="{StaticResource TextBlockStyle}"/>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="599" Canvas.Top="329" Text="{Binding Odometer}" Width="80" FontSize="16" Style="{StaticResource TextBlockStyle}"/>
		</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}"/>
		<local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speedo Analog}"/>
	</Canvas>
</Page>