<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.MER_C63AMG_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="False" UsePsi="False" 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="7" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.083" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_2">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.083" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_3">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.25" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.417" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_4">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.417" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.583" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_5">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.583" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_6">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.75" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.917" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_7">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.917" Value="{x:Static Visibility.Visible}"/>
				<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>
        <Image x:Name="MFD_BG" Height="605" Canvas.Left="338" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_bckgrnd.png" Stretch="Fill" Canvas.Top="58" Width="605"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="514.111" Canvas.Top="204.25" Text="{Binding Odometer}" Width="221.528" FontSize="46.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="529.65" Canvas.Top="300.25" Text="{Binding TripMeter}" Width="165.35" FontSize="46.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"  />
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="582.75" Canvas.Top="503.586" Text="{Binding Time}" FontSize="46.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="536" Canvas.Top="555.749" Text="{Binding ExternalTemp}" FontSize="46.667" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="126.5"/>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="60" Width="392" Canvas.Left="448" Canvas.Top="442">
        	<Image x:Name="Gear_1" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="0"/>
        	<Image x:Name="Gear_2" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="43" Visibility="Hidden"/>
        	<Image x:Name="Gear_3" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="86" Visibility="Hidden"/>
        	<Image x:Name="Gear_4" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="129" Visibility="Hidden"/>
        	<Image x:Name="Gear_5" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="172" Visibility="Hidden"/>
        	<Image x:Name="Gear_6" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="215" Visibility="Hidden"/>
        	<Image x:Name="Gear_7" Height="69" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="258" Visibility="Hidden"/>
        	<Image x:Name="Gears" Height="60" Canvas.Left="15" Source="game:/media/cars/MER_C63AMG_12/UI/Textures/MER_C63AMG_12_Gears.png" Stretch="Fill" Width="296" Canvas.Top="-0.5"/>
        </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>