<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.PLY_Prowler_00"
	DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}}">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Moire"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="False" 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" MinGear="-1" MaxGear="1" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Gear Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Shift_Select">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="61"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="121"/>
			</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>
	  

	<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="Background1" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280" />
		<Rectangle x:Name="Background_Clock" Fill="Black" Height="100.5" Canvas.Left="456.5" Canvas.Top="104" Width="398"/>
		<Rectangle x:Name="Background_Odo" Fill="Black" Height="103.912" Canvas.Left="435.425" Canvas.Top="304.794" Width="440.15"/>
		<Canvas x:Name="Shift_Animation" Height="143" Canvas.Left="400.5" Canvas.Top="279" Width="509.5">
			<Image x:Name="Shift_Graphics" Height="62" Canvas.Left="79.5" Source="game:/media/cars/PLY_Prowler_00/UI/Textures/PLY_Prowler_00_Shift_Graphics.png" Stretch="Fill" Canvas.Top="52" Width="372"/>
			<Image x:Name="Shift_Select" Height="50" Canvas.Left="127" Source="game:/media/cars/PLY_Prowler_00/UI/Textures/PLY_Prowler_00_Shift_Select.png" Stretch="Fill" Canvas.Top="76" Width="50" RenderTransformOrigin="0.5,0.5">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Top="49">
			<TextBlock x:Name="Text_Odometer" Canvas.Left="419.111" Canvas.Top="250.25" Text="{Binding Odometer}" Width="280" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" TextWrapping="NoWrap" RenderTransformOrigin="0.5,0.5" Foreground="#FFFD9C29">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.95"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
            <TextBlock x:Name="Text_Clock" Canvas.Left="377.75" Canvas.Top="72.249" Text="{Binding Time}" FontSize="48" Style="{StaticResource TextBlockStyle}" FontFamily="DG5_QuartzMS" Foreground="#FF19FFFF" Width="350"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="52.5" Opacity="0"/>
		
				<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>