<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.MAZ_Mazdaspeed3_10"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG5_QuartzMS"/>
            <Setter Property="Foreground" Value="#FFFC3027"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="14.5" MinBoost="-11" MaxSpeed="000" 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="0" MaxGear="0" MaxRpm="0000.0"></local:DigitalGaugeConfig>
		
		<Storyboard x:Key="Fuel Gauge">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.182" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.273" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.364" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.455" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.545" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell7">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.636" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell8">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.727" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell9">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.818" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell10">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.909" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell11">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FuelGauge_Cell1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.091" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Boost Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.091" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.182" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.273" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell4">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.364" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell5">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.455" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell6">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.546" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell7">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.637" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell8">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.728" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell9">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.819" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell10">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.910" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BoostGauge_Cell11">
				<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="#FF262626" Width="1280" Height="720" TextBlock.Foreground="#E1000000">
        <Rectangle Fill="Black" Height="358" Canvas.Left="435" Stroke="Black" Canvas.Top="207" Width="412"/>
        <Canvas x:Name="BoostGauge" Height="74" Canvas.Left="636" Canvas.Top="257" Width="10">
        	<Rectangle x:Name="BoostGauge_Cell1" Fill="#FFFC3027" Height="4" Canvas.Top="70" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell2" Fill="#FFFC3027" Height="4" Canvas.Top="63" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell3" Fill="#FFFC3027" Height="4" Canvas.Top="56" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell4" Fill="#FFFC3027" Height="4" Canvas.Top="49" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell5" Fill="#FFFC3027" Height="4" Canvas.Top="42" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell6" Fill="#FFFC3027" Height="4" Canvas.Top="35" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell7" Fill="#FFFC3027" Height="4" Canvas.Top="28" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell8" Fill="#FFFC3027" Height="4" Canvas.Top="21" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell9" Fill="#FFFC3027" Height="4" Canvas.Top="14" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell10" Fill="#FFFC3027" Height="4" Canvas.Top="7" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        	<Rectangle x:Name="BoostGauge_Cell11" Fill="#FFFC3027" Height="4" Canvas.Top="0" Width="10" Canvas.Left="0" Visibility="Hidden"/>
        </Canvas>
        <Canvas x:Name="FuelGauge" Height="8" Canvas.Left="580" Canvas.Top="471.083" Width="120">
        	<Rectangle x:Name="FuelGauge_Cell1" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="0"/>
        	<Rectangle x:Name="FuelGauge_Cell2" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="11"/>
        	<Rectangle x:Name="FuelGauge_Cell3" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="22"/>
        	<Rectangle x:Name="FuelGauge_Cell4" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="33"/>
        	<Rectangle x:Name="FuelGauge_Cell5" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="44"/>
        	<Rectangle x:Name="FuelGauge_Cell6" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="55"/>
        	<Rectangle x:Name="FuelGauge_Cell7" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="66"/>
        	<Rectangle x:Name="FuelGauge_Cell8" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="77"/>
        	<Rectangle x:Name="FuelGauge_Cell9" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="88"/>
        	<Rectangle x:Name="FuelGauge_Cell10" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="99"/>
        	<Rectangle x:Name="FuelGauge_Cell11" Fill="#FFFC3027" Height="8" Canvas.Top="0" Width="10" Canvas.Left="110"/>
        </Canvas>
        <Image x:Name="Legend_Fuel"  Height="64"  Canvas.Left="576" Source="game:/media/cars/MAZ_Mazdaspeed3_10/UI/Textures/MAZ_Mazdaspeed3_10_fuel.png" Stretch="Fill" Canvas.Top="449" Width="128"/>
        <Image x:Name="Legend_Boost" Height="128" Canvas.Left="603" Source="game:/media/cars/MAZ_Mazdaspeed3_10/UI/Textures/MAZ_Mazdaspeed3_10_boost.png" Stretch="Fill" Canvas.Top="241" Width="64"/>
		<Canvas x:Name="Text"
		Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="516.5" Canvas.Top="486" Text="{Binding Odometer}" Width="123.528" FontSize="18.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9" ScaleY="1.25"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="670" Canvas.Top="486" Text="{Binding TripMeter}" Width="73.82" FontSize="18.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Left" RenderTransformOrigin="0.5,0.5">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="#FFBFE8FE" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="52" Opacity="0"/>

        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>