<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="ForzaUI.MER_SLK55AMG_12">
	
    <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="True" 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="True" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Gear Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear_R">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear_R_Rollover">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Highlight_Square_R">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Highlight_Square_D">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear_D__Rollover">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Gear_D">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</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="Background_Grey" Fill="#FF505050" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Gear_Background" Fill="Black" Height="160" Stroke="Black" Width="640" Canvas.Left="320" Canvas.Top="1"/>
        <Rectangle x:Name="MFD_Background" Fill="Black" Height="556" Stroke="Black" Width="520" Canvas.Left="380" Canvas.Top="165"/>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Top="1">
            <TextBlock x:Name="Text_External_Temp" Canvas.Left="602.5" Canvas.Top="632" Text="{Binding ExternalTemp}" FontSize="45.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Width="200">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.98"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Clock" Canvas.Left="346" Canvas.Top="632" Text="{Binding Time}" FontSize="45.333" Style="{StaticResource TextBlockStyle}" Width="200" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.98"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Trip_Odo" Canvas.Left="467" Canvas.Top="249.5" Text="{Binding TripMeter}" Width="250" FontSize="56" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" FontFamily="DG1_Arial">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.98"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Odometer" Canvas.Left="467" Canvas.Top="396.511" Text="{Binding Odometer}" Width="250" FontSize="56" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.98"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <Rectangle Fill="White" Height="4" Canvas.Left="431" Canvas.Top="523" Width="420"/>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="100" Width="350" Canvas.Left="474" Canvas.Top="35">
        	<Rectangle x:Name="Highlight_Square_R" Fill="White" Height="48" Canvas.Left="74" Canvas.Top="28" Width="40"/>
        	<Rectangle x:Name="Highlight_Square_D" Fill="White" Height="48" Canvas.Left="179" Canvas.Top="28" Width="40" Opacity="0"/>
        	<Rectangle x:Name="Gear_P" Height="32" Canvas.Left="24" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_P.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_R" Height="32" Canvas.Left="79" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White" Opacity="0">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_R.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_N" Height="32" Canvas.Left="131" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_N.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_C" Height="32" Canvas.Left="277" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_C.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_D" Height="32" Canvas.Left="184" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_D.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_R_Rollover" Height="32" Canvas.Left="79" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="Black">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_R.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Gear_D__Rollover" Height="32" Canvas.Left="184" Canvas.Top="36" Width="32" RenderTransformOrigin="0.5,0.5" Fill="Black" Opacity="0">
        		<Rectangle.OpacityMask>
        			<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_Gear_D.png"/>
        		</Rectangle.OpacityMask>
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="2" ScaleY="2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="BracketTop" Fill="White" Height="4" Canvas.Left="271" Canvas.Top="23" Width="48"/>
        	<Rectangle x:Name="BracketBottom" Fill="White" Height="4" Canvas.Left="271" Canvas.Top="73" Width="48"/>
        	<Rectangle x:Name="BrackeLeft" Fill="White" Height="54" Canvas.Left="270" Canvas.Top="23" Width="4"/>
        	<Rectangle x:Name="BrackeRight" Fill="White" Height="54" Canvas.Left="316" Canvas.Top="23" Width="4"/>
        </Canvas>
        <Rectangle x:Name="txt_km" Height="32" Canvas.Left="628" Canvas.Top="329" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        	<Rectangle.OpacityMask>
        		<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_txt_km.png"/>
        	</Rectangle.OpacityMask>
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="2.5" ScaleY="2.8"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="txt_temp" Height="32" Canvas.Left="815" Canvas.Top="642" Width="32" RenderTransformOrigin="0.5,0.5" Fill="White">
        	<Rectangle.OpacityMask>
        		<ImageBrush ImageSource="game:/media/cars/MER_SLK55AMG_12/UI/Textures/MER_SLK55AMG_12_txt_temp.png"/>
        	</Rectangle.OpacityMask>
        	<Rectangle.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="2" ScaleY="2"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
		
								<!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>