<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.OPE_Kadett_63"
	 >
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <Setter Property="Foreground" Value="#FFff2C3D"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="False" MaxBoost="13" MinBoost="1" MaxSpeed="38.92" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="15" MaxGear="8" MaxRpm="8000"></local:DigitalGaugeConfig>
		
		<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>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="1280"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1280"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="Start_Up_Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="720"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="720"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Speedo Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Mask">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.143" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.285" Value="67.87"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="121.549"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.571" Value="176.462"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.714" Value="227.673"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.856" Value="281.969"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="335.648"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Color_Orange">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.337" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.429" Value="25.297"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="25.297"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Color_Red">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.704" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.796" Value="25.297"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="25.297"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Speedo Analog}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Background="#FF464646" Width="1280" Height="720">
		<Canvas x:Name="Speedo_Animation" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280" RenderTransformOrigin="0.5,0.5">
			<Rectangle x:Name="Speedo_Window" Fill="#FF464646" Height="20" Canvas.Left="463" Canvas.Top="350" Width="354"/>
			<Rectangle x:Name="Color_Green" Fill="#FF9FCA15" Height="40" Canvas.Left="291.894" Canvas.Top="344.447" Width="304" RenderTransformOrigin="0,0.5"/>
			<Rectangle x:Name="Color_Orange" Fill="#FFDF7A10" Height="40" Canvas.Left="412.149" Canvas.Top="307.851" Width="304" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Color_Red" Fill="#FFE41A0C" Height="40" Canvas.Left="440" Canvas.Top="307.851" Width="392" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Mask" Fill="#FF464646" Height="40" Canvas.Left="450.447" Canvas.Top="344" Width="400" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform AngleX="-20"/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
			<Rectangle x:Name="Tic_01_Copy5" Fill="#FF9FCA15" Height="18" Canvas.Left="461" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01" Fill="#FF9FCA15" Height="18" Canvas.Left="515.02" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01_Copy" Fill="#FF9FCA15" Height="18" Canvas.Left="568.65" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01_Copy1" Fill="#FF9FCA15" Height="18" Canvas.Left="622.98" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01_Copy2" Fill="#FF9FCA15" Height="18" Canvas.Left="676.98" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01_Copy3" Fill="#FF9FCA15" Height="18" Canvas.Left="731.02" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
			<Rectangle x:Name="Tic_01_Copy4" Fill="#FF9FCA15" Height="18" Canvas.Left="784.69" Canvas.Top="401.755" Width="4" Visibility="Hidden"/>
		</Canvas>
		<Canvas x:Name="Text" Height="352" Width="264" Canvas.Left="496" Canvas.Top="195">
			<local:FastTextBlock x:Name="Text_Speed" TextAlignment="Right" Canvas.Left="-328" Canvas.Top="-137.75" Text="{Binding Speed}" Width="320" FontSize="112" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="Black" FontFamily="DG5_QuartzMS">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0.9"/>
						<SkewTransform AngleX="-10"/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
		</Canvas>
		<Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0"/>
		
        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speedo Analog}"/>
	</Canvas>
</Page>