<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.REN_MeganeRS250_10">
	
    <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="False" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="False" MaxBoost="16.9" MinBoost="-11" MaxSpeed="61.16" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="True" HasLapPlaceInfo="False" HasTextBoost="True" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="1" MaxGear="10" MaxRpm="10000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Power">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="108"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Speedo Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Throttle">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="108"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_0">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_10">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_20">
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_30">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_40">
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_50">
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_60">
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_70">
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_80">
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_90">
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Text_Throttle_100">
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Boost">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="108"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Gear Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Torque">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="108"/>
			</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_Main" Fill="#FF4D4D4D" Height="720" Width="1280" Canvas.Left="0.25" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Odo" Fill="#FF090F26" Height="150" Canvas.Left="540.5" Canvas.Top="305.986" Width="200"/>
        <Rectangle x:Name="Background_Gauges" Fill="#FF090F26" Height="120" Canvas.Left="440.333" Canvas.Top="119.327" Width="400"/>
        <Canvas x:Name="Line_Graphics" Height="97.5" Canvas.Left="465.25" Canvas.Top="135.5" Width="353.25">
        	<Rectangle x:Name="Top" Fill="White" Height="2" Canvas.Left="79.25" Canvas.Top="11.25" Width="120"/>
        	<Rectangle x:Name="Line1" Fill="White" Height="2" Canvas.Left="3.75" Canvas.Top="28.75" Width="268"/>
        	<Rectangle x:Name="Line2" Fill="White" Height="2" Canvas.Left="3.75" Canvas.Top="45.5" Width="268"/>
        	<Rectangle x:Name="Line3" Fill="White" Height="2" Canvas.Left="3.75" Canvas.Top="61.5" Width="268"/>
        	<Rectangle x:Name="Bottom" Fill="White" Height="2" Canvas.Left="79.25" Canvas.Top="76.5" Width="120"/>
        	<Rectangle x:Name="Left" Fill="White" Height="63.25" Canvas.Left="79.25" Canvas.Top="13.25" Width="2"/>
        	<Rectangle x:Name="Right" Fill="White" Height="63.25" Canvas.Left="197.25" Canvas.Top="13.25" Width="2"/>
        	<Rectangle x:Name="Block1" Height="11" Canvas.Left="275.75" Canvas.Top="72.75" Width="74" Fill="White"/>
        	<Rectangle x:Name="Block2" Height="32" Canvas.Left="275.75" Canvas.Top="38.75" Width="74" Fill="White"/>
        </Canvas>

        <Canvas x:Name="Tach" Canvas.Left="516.667" Canvas.Top="148" Height="71.5" Width="188">
            <Rectangle x:Name="Cap_Power" Fill="White" Height="10" Canvas.Left="141" Canvas.Top="52.5" Width="2"/>
            <Rectangle x:Name="Fill_Power" Fill="White" Height="10" Canvas.Left="29.75" Canvas.Top="52.5" Width="0" RenderTransformOrigin="0,0.5"/>
		</Canvas>
        <Canvas x:Name="Speedo_Analog" Height="128" Width="128" Canvas.Left="540.5" Canvas.Top="115.25">
        	<Rectangle x:Name="EndCap2" Fill="White" Height="10" Canvas.Left="117.25" Canvas.Top="53.5" Width="2"/>
        	<Rectangle x:Name="Fill_Throttle" Fill="White" Height="10" Canvas.Left="6" Canvas.Top="53.5" Width="0" RenderTransformOrigin="0,0.5"/>
        </Canvas>
        <Canvas x:Name="Boost_Analog" Height="128" Width="128" Canvas.Left="540.5" Canvas.Top="105">
        	<Rectangle x:Name="EndCap" Fill="White" Height="10" Canvas.Left="117.25" Canvas.Top="46.5" Width="2"/>
        	<Rectangle x:Name="Fill_Boost" Fill="White" Height="10" Canvas.Left="5.75" Canvas.Top="46.5" Width="0" RenderTransformOrigin="0,0.5"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Boost" Canvas.Left="649" Canvas.Top="149.25" Text="{Binding BoostText}" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
            <Image x:Name="Text_km_baked"
            Height="14" Source="game:/media/cars/REN_MeganeRS250_10/UI/Textures/REN_MeganeRS250_10_txt_km.png" Stretch="Fill" Width="30" Canvas.Left="663.694" Canvas.Top="357.335" RenderTransformOrigin="0.5,0.5">
            	<Image.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Image.RenderTransform>
            </Image>
            <Image x:Name="Text_km_baked_2"
            	Height="14" Source="game:/media/cars/REN_MeganeRS250_10/UI/Textures/REN_MeganeRS250_10_txt_km.png" Stretch="Fill" Width="30" Canvas.Left="663.694" Canvas.Top="376.335" RenderTransformOrigin="0.5,0.5">
            	<Image.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.9"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Image.RenderTransform>
            </Image>
            <local:FastTextBlock x:Name="Text_Gear" Canvas.Left="687.804" Canvas.Top="170.54" Text="{Binding Gear}" Width="100" FontSize="32" Style="{StaticResource TextBlockStyle}" Foreground="Black" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Canvas.Left="564.192" Canvas.Top="374.421" Text="{Binding TripMeter}" Width="98.333" FontSize="16" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.95"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Odometer" Canvas.Left="564.35" Canvas.Top="355.343" Text="{Binding Odometer}" Width="98.333" FontSize="16" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5">
            	<local:FastTextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="0.95"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Torque_Null" Canvas.Left="648.876" Canvas.Top="182.25" Text="122" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
            <local:FastTextBlock x:Name="Text_Power_Null" Canvas.Left="648.876" Canvas.Top="198.5" Text="110" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial"/>
            <local:FastTextBlock x:Name="Text_Throttle_0" Canvas.Left="648.876" Canvas.Top="165.25" Text="0" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_10" Canvas.Left="648.876" Canvas.Top="165.25" Text="10" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_20" Canvas.Left="648.876" Canvas.Top="165.25" Text="20" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_30" Canvas.Left="648.876" Canvas.Top="165.25" Text="30" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_40" Canvas.Left="648.876" Canvas.Top="165.25" Text="40" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_50" Canvas.Left="648.876" Canvas.Top="165.25" Text="50" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_60" Canvas.Left="648.876" Canvas.Top="165.25" Text="60" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_70" Canvas.Left="648.876" Canvas.Top="165.25" Text="70" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_80" Canvas.Left="648.876" Canvas.Top="165.25" Text="80" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_90" Canvas.Left="648.876" Canvas.Top="165.25" Text="90" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
            <local:FastTextBlock x:Name="Text_Throttle_100" Canvas.Left="648.876" Canvas.Top="165.25" Text="100" Width="50" FontSize="13.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" Opacity="0"/>
		</Canvas>
        <Canvas x:Name="Gear_Analog" Height="88.167" Width="151.833" Canvas.Left="516.667" Canvas.Top="131.333">
        	<Rectangle x:Name="EndCap3" Fill="White" Height="10" Canvas.Left="141.083" Canvas.Top="53.5" Width="2"/>
        	<Rectangle x:Name="Fill_Torque" Fill="White" Height="10" Canvas.Left="29.75" Canvas.Top="53.5" Width="0" RenderTransformOrigin="0,0.5"/>
        </Canvas>
		<Image x:Name="Graphics_GearShift" Height="72" Canvas.Left="743.25" Source="game:/media/cars/REN_MeganeRS250_10/UI/Textures/REN_MeganeRS250_10_Gear_Graphics.png" Stretch="Fill" Canvas.Top="146.5" Width="70"/>
		<Image x:Name="Graphics_Sliders" Height="70" Canvas.Left="481.25" Source="game:/media/cars/REN_MeganeRS250_10/UI/Textures/REN_MeganeRS250_10_Gauges_Graphics.png" Stretch="Fill" Canvas.Top="146.5" Width="250"/>
        <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 Tach}" Target="{StaticResource Tach}"/>
        <local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
		<local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speedo Analog}"/>
	</Canvas>
</Page>