<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"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    mc:Ignorable="d"
	x:Class="DigitalGauge.HON_S2000_03"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG5_QuartzMS"/>
            <Setter Property="Foreground" Value="#FFFFE971"/>
        	 
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="True" UseMPH="True" UsePsi="True" MaxBoost="0" MinBoost="0" MaxSpeed="00" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="True" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="0" MaxGear="0" MaxRpm="10000.0"/>
		
		<Storyboard x:Key="Fuel Gauge">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Fuel_Cover">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="139"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		          
        <Storyboard x:Key="Tach">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Shift_Light_Animation">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.9" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Tach_Wipe">
				<EasingDoubleKeyFrame KeyTime="0" Value="39.163"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="44.896"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="52.101"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="60.74"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="69.407"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="78.614"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="89.371"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="102.344"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="117.746"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="133.587"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="140.002"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Tach_End_Mask">
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="244"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="244"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Shift Lights Flash" RepeatBehavior="Forever">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Flashing">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.168" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.334" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.667" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.834" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</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>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<BeginStoryboard Storyboard="{StaticResource Shift Lights Flash}"/>
		</EventTrigger>
	</Page.Triggers>

	<Canvas x:Name="LayoutRoot" Background="Transparent" Width="1280" Height="720">
		<Rectangle x:Name="Background" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
		<Image x:Name="Tach_Base" Height="246" Canvas.Left="172" Source="game:/media/cars/HON_S2000_03/UI/Textures/HON_S2000FF_01_Tach_Base.png" Stretch="Fill" Canvas.Top="195" Width="924"/>
		<Canvas x:Name="Tach_Animation" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
			<Rectangle x:Name="Tach_Wipe" Fill="#FF311901" Height="500" Canvas.Left="74" Width="752.62" RenderTransformOrigin="0.747,1" Canvas.Top="154">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="39.163"/>
						<TranslateTransform X="13.66" Y="-10.019"/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Tach_End_Mask" Fill="#FF311901" Height="240" Canvas.Left="840" Canvas.Top="168" Width="336" RenderTransformOrigin="0.5,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Canvas x:Name="Shift_Light_Animation" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280" Visibility="Hidden">
			<Rectangle x:Name="Flashing" Fill="#FF311901" Height="526" Canvas.Left="103" Stroke="Black" Canvas.Top="76" Width="1029"/>
		</Canvas>
		<Canvas x:Name="Fuel_Gauge_Animation" Height="192" Canvas.Left="697.5" Canvas.Top="287" Width="475.5">
			<Rectangle x:Name="Fuel_Background" Fill="#FF311901" Height="96" Canvas.Left="174.5" Canvas.Top="57" Width="224"/>
			<Rectangle x:Name="Fuel_Cover" Fill="#FFFE6F03" Height="30" Stroke="Black" Canvas.Top="70" Width="150" RenderTransformOrigin="0.5,0.5" Canvas.Left="77">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform AngleX="-8"/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
		<Rectangle x:Name="Mask_Top" Fill="Black" Height="195" Canvas.Left="14.5" Stroke="Black" Width="1253.5" Canvas.Top="0.67"/>
		<Rectangle x:Name="Mask_Bottom" Fill="Black" Height="275" Canvas.Left="0" Stroke="Black" Canvas.Top="439.333" Width="1280"/>
		<Rectangle x:Name="Mask_Left" Fill="Black" Height="720" Canvas.Left="2.5" Stroke="Black" Canvas.Top="0" Width="171.833"/>
		<Rectangle x:Name="Mask_Right" Fill="Black" Height="720" Canvas.Left="1095.5" Stroke="Black" Canvas.Top="0" Width="183"/>
		<Image x:Name="Tach_Mask" Height="246" Canvas.Left="172" Source="game:/media/cars/HON_S2000_03/UI/Textures/HON_S2000FF_01_Tach_Mask.png" Stretch="Fill" Canvas.Top="195" Width="924"/>
		<Rectangle x:Name="Bckgd_Odo" Fill="#FF311901" Height="47.666" Canvas.Left="517.333" Canvas.Top="387.667" Width="232"/>
		<Rectangle x:Name="Bckgd_Speedo" Fill="#FF3C170C" Height="110" Canvas.Left="517.333" Canvas.Top="273.014" Width="232"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed_Background" Canvas.Left="533" Canvas.Top="276" Text="888" Width="200" FontSize="122.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" Foreground="Black" Opacity="0.2">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.1"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="533" Canvas.Top="276" Text="{Binding Speed}" Width="200" FontSize="122.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" Foreground="#FFFB2919">
				<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="589" Canvas.Top="406.5" Text="{Binding TripMeter}" Width="150" FontSize="29.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" Foreground="#FFFFB42A">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="526" Canvas.Top="406.5" Text="{Binding Odometer}" Width="150" FontSize="29.333" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG2_LCD" Foreground="#FFFFB42A" TextAlignment="Left">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<Image x:Name="Txt_Trip" Height="10" Canvas.Left="661" Source="game:/media/cars/HON_S2000_03/UI/Textures/HON_S2000_03_txt_trip.png" Stretch="Fill" Canvas.Top="393.5" Width="64"/>
			
		</Canvas>
		<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 Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
	</Canvas>
</Page>