<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_G65AMG_13"
	 >
	
    <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="0" MinBoost="0" MaxSpeed="00" 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="0000.0"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_3">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.4" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.7" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_4">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.7" 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="Gears_Merged" Height="109" Canvas.Left="425" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_GearsMerged.png" Stretch="Fill" Canvas.Top="43" Width="430"/>
        <Canvas x:Name="Gear_Analog" Height="60" Width="266" Canvas.Left="486" Canvas.Top="73">
        	<Image x:Name="Gear_2" Height="69" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="62" Visibility="Hidden"/>
        	<Image x:Name="Gear_3" Height="69" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="123" Visibility="Hidden"/>
        	<Image x:Name="Gear_4" Height="69" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_Gear_Highlight.png" Stretch="Fill" Canvas.Top="-4.333" Width="69" Canvas.Left="185" Visibility="Hidden"/>
        </Canvas>
		<Image x:Name="Gears" Height="50" Canvas.Left="497" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_Gears.png" Stretch="Fill" Canvas.Top="75" Width="230"/>
		<Image x:Name="MFD_BG" Height="490" Canvas.Left="425" Source="game:/media/cars/MER_G65AMG_13/UI/Textures/MER_G65AMG_13_bckgd.png" Stretch="Fill" Canvas.Top="187" Width="430"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="530" Canvas.Top="288" Text="{Binding Odometer}" Width="192" FontSize="40" 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="544" Canvas.Top="370" Text="{Binding TripMeter}" Width="142" FontSize="40" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"   Height="45.9966666666667"/>
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="435" Canvas.Top="618" Text="{Binding Time}" FontSize="40" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="120" RenderTransformOrigin="0.5,0.5" Height="45.9966666666667">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_External_Temp" Canvas.Left="657.5" Canvas.Top="618" Text="{Binding ExternalTemp}" FontSize="40" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Width="126.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>