<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="ForzaUI.AUD_RS7_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="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="20" MaxGear="8" 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.Opacity)" Storyboard.TargetName="Fuel_1">
				<EasingDoubleKeyFrame KeyTime="0:0:0.125" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.131" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_2">
				<EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.259" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_3">
				<EasingDoubleKeyFrame KeyTime="0:0:0.375" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.385" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_4">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.506" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_5">
				<EasingDoubleKeyFrame KeyTime="0:0:0.625" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.629" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_6">
				<EasingDoubleKeyFrame KeyTime="0:0:0.75" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.755" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Fuel_7">
				<EasingDoubleKeyFrame KeyTime="0:0:0.874" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.883" 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="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_Grey" Fill="#FF3B3B3B" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Canvas x:Name="Fuel_Animation" Height="428" Canvas.Left="1019.333" Canvas.Top="237.333" Width="260.667">
        	<Rectangle x:Name="Background" Fill="#FF232323" Height="411" Canvas.Left="13" Canvas.Top="7.5" Width="248"/>
        	<Image x:Name="Fuel_8" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_8.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_7" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_7.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_6" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_6.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_5" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_5.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_4" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_4.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_3" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_3.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_2" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_2.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        	<Image x:Name="Fuel_1" Height="183" Canvas.Left="132.662" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Fuel_1.png" Stretch="Fill" Canvas.Top="161.669" Width="106"/>
        </Canvas>
        <Rectangle x:Name="Background_Temp" Fill="#FF232323" Height="411" Canvas.Top="244.833" Width="248" Canvas.Left="-0.5"/>
        <Rectangle x:Name="Background_Center" Fill="Black" Height="528" Width="900" Canvas.Left="180" Canvas.Top="78"/>
		<Image x:Name="MFD_Graphics" Height="355" Canvas.Left="322" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_MFD_graphics.png" Stretch="Fill" Canvas.Top="158" Width="615"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="346.5" Canvas.Top="447.5" Text="{Binding ExternalTemp}" FontSize="24" Style="{StaticResource TextBlockStyle}" Width="150" RenderTransformOrigin="0.5,0.5" Foreground="White" FontFamily="DG1_Arial">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="380.164" Canvas.Top="481.5" Text="{Binding Time}" FontSize="24" Style="{StaticResource TextBlockStyle}" Width="120" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="395.793" Canvas.Top="285" Text="{Binding Speed}" Width="250" FontSize="82.667" Style="{StaticResource TextBlockStyle}" Foreground="White" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="629.192" Canvas.Top="447.5" Text="{Binding TripMeter}" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="150" Foreground="White" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="559.183" Canvas.Top="481.5" Text="{Binding Odometer}" Width="220" FontSize="24" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.15"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Gear" Canvas.Left="584.164" Canvas.Top="476.5" Text="{Binding Gear}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="50" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial" Foreground="White"/>
		</Canvas>
        <Image x:Name="Temperature_Graphics" Height="190" Canvas.Left="33" Source="game:/media/cars/AUD_RS7_13/UI/Textures/AUD_RS7_13_Temp_Graphics.png" Stretch="Fill" Canvas.Top="398" Width="111"/>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" 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>