<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.BOW_NemesisEXR_12">
	
    <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="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="20" MinGear="-1" MaxGear="1" MaxRpm="8000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Fuel_Main">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="9.378"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Fuel_Highlight_Top">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-138.25"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="Fuel_Highlight_Side">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="8.679"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_N">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_D">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</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>
	  

	<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_Black" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0" />
		<Rectangle x:Name="Background_Main" Fill="#FF55585F" Height="428" Canvas.Left="452" Canvas.Top="146.667" Width="376"/>
		<Image x:Name="Graphics_Temperature" Height="180" Canvas.Left="447.242" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_Gauge_Temp.png" Stretch="Fill" Canvas.Top="306.667" Width="110"/>
		<Image x:Name="Graphics_Fuel" Height="180" Canvas.Left="722.818" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_Gauge_Fuel.png" Stretch="Fill" Canvas.Top="306.667" Width="110"/>
		<Image x:Name="Temperature_Null_Arrow" Height="12" Canvas.Left="448.003" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_arrow.png" Stretch="Fill" Canvas.Top="390.009" Width="30"/>
		<Image x:Name="Gradient_Bar_Top" Height="35" Canvas.Left="452" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_gradient_bar.png" Stretch="Fill" Canvas.Top="147.312" Width="376"/>
        <Image x:Name="Gradient_Bar_Bottom" Height="35" Canvas.Left="452" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_gradient_bar.png" Stretch="Fill" Canvas.Top="482.813" Width="376"/>
        <Canvas x:Name="Fuel" Canvas.Left="655" Canvas.Top="242" Height="319" Width="311.5">
        	<Rectangle x:Name="Fuel_Main" Fill="#FFC5C2CB" Height="16.5" Canvas.Left="151.75" Canvas.Top="216.207" Width="21" RenderTransformOrigin="0.5,1">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Fuel_Highlight_Side" Fill="#FFEBEBEB" Height="18" Canvas.Left="151.086" Canvas.Top="214.707" Width="3" RenderTransformOrigin="0.5,1">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Fuel_Highlight_Top" Fill="#FFEBEBEB" Height="3" Canvas.Left="151.086" Canvas.Top="214.707" Width="21.664" RenderTransformOrigin="0.5,1">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Left="26.5" Canvas.Top="-2.625">
            <local:FastTextBlock x:Name="Text_Speed" Canvas.Left="519.465" Canvas.Top="516.832" Text="{Binding Speed}" Width="200" FontSize="53.333" Style="{StaticResource TextBlockStyle}" Foreground="White" RenderTransformOrigin="0.5,0.5"/>
            <Image x:Name="Text_Baked_MPH" Height="20" Canvas.Left="728.24" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_txt_mph.PNG" Stretch="Fill" Canvas.Top="548.67" Width="60"/>
            <Image x:Name="Text_Baked_Miles" Height="16" Canvas.Left="727.573" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_txt_miles.png" Stretch="Fill" Canvas.Top="496.001" Width="60"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="416.126" Canvas.Top="149.498" Text="{Binding Time}" Width="110" FontSize="28" Style="{StaticResource TextBlockStyle}" Foreground="White" RenderTransformOrigin="0.5,0.5"/>
            <Image x:Name="Text_Baked_Temp_Glyph" Height="24" Canvas.Left="757.573" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_temp_glyph.png" Stretch="Fill" Canvas.Top="154.167" Width="30"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="646.908" Canvas.Top="149.498" Text="{Binding ExternalTemp}" Width="110" FontSize="28" Style="{StaticResource TextBlockStyle}" Foreground="White" RenderTransformOrigin="0.5,0.5"/>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="469.465" Canvas.Top="486.281" Text="{Binding Odometer}" Width="250" FontSize="28" Style="{StaticResource TextBlockStyle}" Foreground="White" RenderTransformOrigin="0.5,0.5"/>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="420.5" Width="569" Canvas.Left="373" Canvas.Top="172.5">
        	<Image x:Name="Gear_N" Height="40" Canvas.Left="92.668" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_gear_N.png" Stretch="Fill" Canvas.Top="354.833" Width="40" Visibility="Hidden"/>
        	<Image x:Name="Gear_D" Height="40" Canvas.Left="92.668" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_gear_D.png" Stretch="Fill" Canvas.Top="354.833" Width="40" Visibility="Hidden"/>
        	<Image x:Name="Gear_R" Height="40" Canvas.Left="92.668" Source="game:/media/cars/BOW_NemesisEXR_12/UI/Textures/BOW_NemesisEXR_12_gear_R.png" Stretch="Fill" Canvas.Top="354.833" Width="40"/>
        </Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0" RenderTransformOrigin="0.5,0.5">
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>