<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.CHE_Camaro1LE_18"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG2_LCD"/>
            <Setter Property="Foreground" Value="#FFFDAD4E"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="True" UsePsi="False" MaxBoost="13" MinBoost="1" 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="20" MaxGear="8" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Needle_Fuel">
				<EasingDoubleKeyFrame KeyTime="0" Value="-118.849"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="119.402"/>
			</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>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Background="#FF3F3F3F" Width="1280" Height="720" TextBlock.Foreground="#E1000000">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="NightDaySplit">
				<VisualState x:Name="Day"/>
				<VisualState x:Name="Night"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
        <Rectangle Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
		<Image x:Name="Graphics_2" Height="439" Canvas.Left="311" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro_16_Graphics_2.png" Stretch="Fill" Canvas.Top="49" Width="657" Opacity="0.8"/>
		<Canvas x:Name="Fuel_Gauge_Animation" Height="241" Canvas.Left="584" Canvas.Top="52" Width="285" RenderTransformOrigin="0.5,0">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Image x:Name="Needle_Fuel" Height="70" Canvas.Left="133" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro_16_Needle.png" Stretch="Fill" Canvas.Top="45.667" Width="12" RenderTransformOrigin="0.5,1">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-118.849"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Image x:Name="Needle_Oil" Height="70" Canvas.Left="386.333" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro_16_Needle.png" Stretch="Fill" Canvas.Top="109.667" Width="12" RenderTransformOrigin="0.5,1">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-22.182"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="Needle_Water" Height="70" Canvas.Left="551.666" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro_16_Needle.png" Stretch="Fill" Canvas.Top="98.995" Width="12" RenderTransformOrigin="0.5,1">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-79.663"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="Needle_Battery" Height="70" Canvas.Left="881.006" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro_16_Needle.png" Stretch="Fill" Canvas.Top="109.667" Width="12" RenderTransformOrigin="0.5,1">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-18.191"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Canvas x:Name="Text"
		Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="515" Canvas.Top="285.75" Text="{Binding Speed}" Width="250" FontSize="90.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center" FontFamily="Moire">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform AngleX="-10"/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="442" Canvas.Top="420.96" Text="{Binding TripMeter}" Width="200" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Right" FontFamily="Moire"/>
		</Canvas>
		<Image x:Name="BlueMoon_Right" Height="313" Canvas.Left="878" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro1LE_18_BlueMoon.png" Stretch="Fill" Canvas.Top="174.333" Width="130" RenderTransformOrigin="0.5,0.5">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleY="1" ScaleX="-1"/>
					<SkewTransform AngleY="0" AngleX="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="BlueMoon_Left" Height="313" Canvas.Left="270.003" Source="game:/media/cars/CHE_Camaro1LE_18/UI/Textures/CHE_Camaro1LE_18_BlueMoon.png" Stretch="Fill" Canvas.Top="174.333" Width="130"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="#FFBFE8FE" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>

        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>