<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.LOT_EvoraS_11"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="#FFff2C3D"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" 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="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>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="1280"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1280"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="720"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="720"/>
			</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="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Fuel Gauge}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Background="#FF2D2D2D" Width="1280" Height="720">
		<Rectangle x:Name="Background_Left" Fill="Black" Height="300" Canvas.Left="53" Canvas.Top="314" Width="400"/>
		<Rectangle x:Name="Background_Right" Fill="Black" Height="300" Canvas.Left="816" Canvas.Top="314" Width="400"/>
		<Rectangle x:Name="Background_Center" Fill="Black" Height="200" Canvas.Left="476" Canvas.Top="83" Width="300"/>
		<Image x:Name="Graphics_Left" Height="185" Canvas.Left="282" Source="game:/media/cars/Lot_EvoraS_11/UI/Textures/LOT_EvoraS_11_Graphics_L.png" Stretch="Fill" Canvas.Top="371" Width="95"/>
		<Image x:Name="Graphics_Right" Height="185" Canvas.Left="880" Source="game:/media/cars/Lot_EvoraS_11/UI/Textures/LOT_EvoraS_11_Graphics_R.png" Stretch="Fill" Canvas.Top="371" Width="149"/>
		<Rectangle x:Name="Water_Temp_Fill" Fill="#FFF50900" Height="90.667" Canvas.Left="888.333" Canvas.Top="441.666" Width="10"/>
		<Rectangle x:Name="Water_Temp_Hatch" Fill="Black" Height="3" Canvas.Left="888.333" Canvas.Top="453.003" Width="10"/>
		<Canvas x:Name="Fuel_Gauge" Height="181.5" Canvas.Left="306.5" Canvas.Top="365.5" Width="96">
			<Rectangle x:Name="Fuel_Fill" Fill="#FFF50900" Height="139" Canvas.Left="50" Canvas.Top="28" Width="10" RenderTransformOrigin="0.5,1">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Hatch_1" Fill="Black" Height="3" Canvas.Left="49.5" Canvas.Top="149.218" Width="11"/>
			<Rectangle x:Name="Hatch_2" Fill="Black" Height="3" Canvas.Left="49.5" Canvas.Top="130.903" Width="11"/>
			<Rectangle x:Name="Hatch_3" Fill="Black" Height="3" Canvas.Left="49.5" Canvas.Top="112.255" Width="11"/>
		</Canvas>
		<Canvas x:Name="Text" Height="352" Width="264" Canvas.Left="496" Canvas.Top="195">
			<local:FastTextBlock x:Name="Text_Clock" Canvas.Left="-282" Canvas.Top="244" Text="{Binding Time}" FontSize="32" Style="{StaticResource TextBlockStyle}" Width="100" Foreground="#FFF50900" FontFamily="DG2_LCD" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.4"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="-334" Canvas.Top="204" Text="{Binding ExternalTemp}" FontSize="26.667" Style="{StaticResource TextBlockStyle}" Width="150" RenderTransformOrigin="0.5,0.5" Foreground="#FFF50900" FontFamily="DG2_LCD">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.4"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="-195" Canvas.Top="-71" Text="{Binding Odometer}" Width="300" FontSize="26.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" Foreground="#FFF50900">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.8"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="-280" Canvas.Top="278" Text="{Binding Speed}" FontSize="37.333" Style="{StaticResource TextBlockStyle}" Width="100" Foreground="#FFF50900" FontFamily="DG2_LCD" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.4"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
		</Canvas>
		<Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
		
        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>