<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.FER_F40Competizione_89">
	
    <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" HasTachMem="False" HasClock="False" HasExternalTemp="False" UseDegreesF="True" UseMPH="False" UsePsi="False" MinBoost="0" MaxBoost="2.6" MaxSpeed="90.82" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="False" HasTextFuel="False" MaxFuel="20.6" MinGear="-1" MaxGear="1" MaxRpm="10000.0"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fill_Tach">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="0.082"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.135"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0.185"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0.43"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0.663"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0.791"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Tach">
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="585"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="580"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="589.39571428571423"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="585"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="595"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="593.154"/>
			</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>
		<Storyboard x:Key="Boost Analog">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Fill_Boost">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.38" Value="0.025"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.77" Value="0.405"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.686"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="Fill_Boost">
				<EasingDoubleKeyFrame KeyTime="0:0:0.38" Value="593.154"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.77" Value="595"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="597"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Boost Analog}"/>
		</EventTrigger>
	</Page.Triggers>
	
		<local:EventFire.FzTriggers>
        <local:EventFireTrigger Event="StartUp" Storyboard="{StaticResource Start Up Animation}"/>
    </local:EventFire.FzTriggers>
 
	<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_Black" Fill="#FF2D2D2D" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0"/>
        <Rectangle x:Name="Background_Temp_1" Fill="#FF687669" Height="80" Canvas.Left="376" Canvas.Top="264" Width="175"/>
        <Rectangle x:Name="Background_Temp_2" Fill="#FF687669" Height="80" Canvas.Left="572" Canvas.Top="264" Width="260"/>
        <Canvas x:Name="Tach_Animation" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280">
        	<Rectangle x:Name="Tach_Background_1" Fill="#FF687669" Height="24" Canvas.Left="301" Canvas.Top="448" Width="603"/>
        	<Rectangle x:Name="Tach_Background_2" Fill="#FF687669" Height="24" Canvas.Left="301" Canvas.Top="488" Width="603"/>
        	<Rectangle x:Name="Fill_Boost" Fill="Black" Height="20" Canvas.Left="305.346" Canvas.Top="449.998" Width="593.154" RenderTransformOrigin="0,0.5">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="0"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Fill_Tach" Fill="Black" Height="20" Canvas.Left="305.346" Canvas.Top="489.999" Width="593.154" RenderTransformOrigin="0,0.5">
        		<Rectangle.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="0"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Rectangle.RenderTransform>
        	</Rectangle>
        	<Rectangle x:Name="Tach_Hatch_01" Fill="#FF687669" Height="70" Canvas.Left="316.665" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_02" Fill="#FF687669" Height="70" Canvas.Left="331.984" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_03" Fill="#FF687669" Height="70" Canvas.Left="347.303" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_04" Fill="#FF687669" Height="70" Canvas.Left="362.622" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_05" Fill="#FF687669" Height="70" Canvas.Left="377.941" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_06" Fill="#FF687669" Height="70" Canvas.Left="393.26" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_07" Fill="#FF687669" Height="70" Canvas.Left="408.579" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_08" Fill="#FF687669" Height="70" Canvas.Left="423.898" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_09" Fill="#FF687669" Height="70" Canvas.Left="439.217" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_10" Fill="#FF687669" Height="70" Canvas.Left="454.536" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_11" Fill="#FF687669" Height="70" Canvas.Left="469.855" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_12" Fill="#FF687669" Height="70" Canvas.Left="485.174" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_13" Fill="#FF687669" Height="70" Canvas.Left="500.493" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_14" Fill="#FF687669" Height="70" Canvas.Left="515.812" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_15" Fill="#FF687669" Height="70" Canvas.Left="531.131" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_16" Fill="#FF687669" Height="70" Canvas.Left="546.45" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_17" Fill="#FF687669" Height="70" Canvas.Left="561.769" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_18" Fill="#FF687669" Height="70" Canvas.Left="577.088" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_19" Fill="#FF687669" Height="70" Canvas.Left="592.407" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_20" Fill="#FF687669" Height="70" Canvas.Left="607.726" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_21" Fill="#FF687669" Height="70" Canvas.Left="623.045" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_22" Fill="#FF687669" Height="70" Canvas.Left="638.364" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_23" Fill="#FF687669" Height="70" Canvas.Left="653.683" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_24" Fill="#FF687669" Height="70" Canvas.Left="669.002" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_25" Fill="#FF687669" Height="70" Canvas.Left="684.321" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_26" Fill="#FF687669" Height="70" Canvas.Left="699.64" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_27" Fill="#FF687669" Height="70" Canvas.Left="714.959" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_28" Fill="#FF687669" Height="70" Canvas.Left="730.278" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_29" Fill="#FF687669" Height="70" Canvas.Left="745.597" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_30" Fill="#FF687669" Height="70" Canvas.Left="760.916" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_31" Fill="#FF687669" Height="70" Canvas.Left="776.235" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_32" Fill="#FF687669" Height="70" Canvas.Left="791.554" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_33" Fill="#FF687669" Height="70" Canvas.Left="806.873" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_34" Fill="#FF687669" Height="70" Canvas.Left="822.192" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_35" Fill="#FF687669" Height="70" Canvas.Left="837.511" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_36" Fill="#FF687669" Height="70" Canvas.Left="852.83" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_37" Fill="#FF687669" Height="70" Canvas.Left="868.149" Canvas.Top="445.999" Width="4"/>
        	<Rectangle x:Name="Tach_Hatch_38" Fill="#FF687669" Height="70" Canvas.Left="883.468" Canvas.Top="445.999" Width="4"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
			<local:FastTextBlock x:Name="Text_Speed" Canvas.Left="244" Canvas.Top="120" Text="{Binding Speed}" Width="180" FontSize="50.667" Style="{StaticResource TextBlockStyle}" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" FontFamily="DG5_QuartzMS" Foreground="White">
				<local:FastTextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.25" ScaleX="0.9"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</local:FastTextBlock.RenderTransform>
			</local:FastTextBlock>
			<Image x:Name="Txt_Graphic_L" Height="48" Canvas.Left="384" Source="game:/media/cars/FER_F40Competizione_89/UI/Textures/FER_F40Competizione_89_txt_L.png" Stretch="Fill" Canvas.Top="282" Width="160"/>
			<Image x:Name="Txt_Graphic_R" Height="48" Canvas.Left="632" Source="game:/media/cars/FER_F40Competizione_89/UI/Textures/FER_F40Competizione_89_txt_R.png" Stretch="Fill" Canvas.Top="282" Width="145"/>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
		
        <!-- Storyboard binding controllers -->
        <local:StoryboardController SeekPct="{Binding Tach}" Target="{StaticResource Tach}"/>
		<local:StoryboardController SeekPct="{Binding BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>