<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.MAS_LevanteS_17"
	 >
	
    <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="False" UseDegreesF="False" UseMPH="True" UsePsi="True" MaxBoost="13" MinBoost="1" 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="21" MinGear="-1" MaxGear="1" 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)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Fuel_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="1.619"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="1.95"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="2.38"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.498" Value="2.85"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="3.245"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="3.591"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="4.045"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="4.706"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Fuel_Fill">
				<EasingDoubleKeyFrame KeyTime="0" Value="22.528"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="14.135"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="4"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="1.874"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.498" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="-4.378"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="-8.612"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.875" Value="-10.163"/>
			</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" Fill="Black" Height="720" Width="1280" Canvas.Left="0"/>
        <Image x:Name="Graphics_Fuel_Background" Height="294" Canvas.Left="391" Source="game:/media/cars/MAS_LevanteS_17/UI/Textures/MAS_LevanteS_17_Graphics_Under.png" Stretch="Fill" Canvas.Top="224" Width="72"/>
        <Canvas x:Name="Fuel_Gauge" Height="656" Canvas.Top="46.5" Width="423" Canvas.Left="158.5">
        	<Rectangle x:Name="Fuel_Fill" Fill="White" Height="53.414" Canvas.Left="229.5" Canvas.Top="428.086" Width="111.098" RenderTransformOrigin="0,1">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="22.528"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        </Canvas>
        <Image x:Name="Graphics_Primary" Height="471" Canvas.Left="351" Source="game:/media/cars/MAS_LevanteS_17/UI/Textures/MAS_LevanteS_17_Graphics_Main.png" Stretch="Fill" Canvas.Top="125.5" Width="594"/>
        <Rectangle x:Name="Fuel_Mask" Fill="Black" Height="468" Canvas.Left="154.5" Canvas.Top="125.5" Width="196.5"/>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Top="0">
            <local:FastTextBlock x:Name="Text_TripMeter" Canvas.Left="436.472" Canvas.Top="542" Text="{Binding TripMeter}" Width="221.528" FontSize="29.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="539" Canvas.Top="484.406" Text="{Binding Gear}" Width="221.528" FontSize="58.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Speed" Canvas.Left="500" Canvas.Top="272.883" Text="{Binding Speed}" Width="300" FontSize="72" Style="{StaticResource TextBlockStyle}" FontFamily="Moire"   RenderTransformOrigin="0.5,0.5" TextAlignment="Center">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.1"/>
            			<SkewTransform AngleX="-15"/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Time" Canvas.Left="195" Canvas.Top="141.003" Text="{Binding Time}" Width="221.528" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		
				<!-- Storyboard binding controllers -->
	</Canvas>
</Page>