<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_CamaroZL1_17"
	 >
	
    <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="True" MaxBoost="9.5" MinBoost="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="19" 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>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Needle_Boost">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="78.388"/>
			</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="#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_CamaroZL1_17/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_CamaroZL1_17/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="Moon_L" Height="313" Canvas.Left="269" Source="game:/media/cars/CHE_CamaroZL1_17/UI/Textures/CHE_Camaro_16_Moon_L.png" Stretch="Fill" Canvas.Top="175" Width="130" Opacity="0.7"/>
		<Image x:Name="Moon_R" Height="313" Canvas.Left="878" Source="game:/media/cars/CHE_CamaroZL1_17/UI/Textures/CHE_Camaro_16_Moon_R.png" Stretch="Fill" Canvas.Top="175" Width="130" Opacity="0.7"/>
		<Image x:Name="Needle_Oil" Height="70" Canvas.Left="386.333" Source="game:/media/cars/CHE_CamaroZL1_17/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_CamaroZL1_17/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="-29.654"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Canvas x:Name="Boost_Animation" Height="240" Canvas.Left="768" Canvas.Top="55" Width="240">
			<Image x:Name="Needle_Boost" Height="70" Canvas.Left="113.5" Source="game:/media/cars/CHE_CamaroZL1_17/UI/Textures/CHE_Camaro_16_Needle.png" Stretch="Fill" Canvas.Top="52.5" Width="12" RenderTransformOrigin="0.5,1">
				<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_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>
        <Rectangle x:Name="Start_Up_Mask" Fill="#FFBFE8FE" Height="668" Stroke="Black" Width="1186" Canvas.Left="57.688" Canvas.Top="52" 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>