<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.MIT_GalantVR4_92">
	
    <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="False" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="11" MinBoost="-11" MaxSpeed="61.16" 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="20" MinGear="1" MaxGear="10" MaxRpm="10000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="Boost Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Yellow_On_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.167" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Yellow_On_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.333" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Yellow_On_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Red_On_1">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.667" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Red_On_2">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.833" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Boost_Red_On_3">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<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>
		<Style x:Key="TextBlockStyle2" TargetType="{x:Type TextBlock}">
			<Setter Property="FontFamily" Value="Moire"/>
			<Setter Property="Foreground" Value="White"/>
			<Setter Property="TextWrapping" Value="NoWrap"/>
			<Setter Property="TextAlignment" Value="Right"/>
		</Style>
	</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_Boost" Fill="Black" Height="120" Canvas.Left="440.333" Canvas.Top="119.327" Width="400"/>
        <Rectangle x:Name="Background_Clock" Fill="Black" Height="174" Canvas.Left="409.166" Canvas.Top="343.327" Width="462.334"/>
        <Canvas x:Name="Text" Height="120" Canvas.Left="440.333" Canvas.Top="370.327" Width="400">
        	<TextBlock x:Name="Text_Clock_Background" Canvas.Left="30.164" Canvas.Top="22.5" Text="88:88" FontSize="72" Style="{StaticResource TextBlockStyle2}" Foreground="#FFFB2E19" FontFamily="DG2_LCD" Width="250" RenderTransformOrigin="0.5,0.5" Opacity="0.15">
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="1.2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        	<TextBlock x:Name="Text_Clock" Canvas.Left="30.164" Canvas.Top="22.5" Text="{Binding Time}" FontSize="72" Style="{StaticResource TextBlockStyle2}" Foreground="#FFFB2E19" FontFamily="DG2_LCD" Width="250" RenderTransformOrigin="0.5,0.5" Opacity="0.7">
        		<TextBlock.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform ScaleX="1.2"/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        </Canvas>
        <Canvas x:Name="Boost_Analog" Height="144" Width="442" Canvas.Left="429.5" Canvas.Top="105">
        	<Image x:Name="Boost_Yellow_Off_1" Height="14" Canvas.Left="86.5" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Yellow_Off_2" Height="14" Canvas.Left="134.5" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Yellow_Off_3" Height="14" Canvas.Left="183" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Red_Off_1" Height="14" Canvas.Left="232" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Red_Off_2" Height="14" Canvas.Left="280" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Red_Off_3" Height="14" Canvas.Left="328" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Opacity="0.2"/>
        	<Image x:Name="Boost_Yellow_On_1" Height="14" Canvas.Left="86.5" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        	<Image x:Name="Boost_Yellow_On_2" Height="14" Canvas.Left="134.5" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        	<Image x:Name="Boost_Yellow_On_3" Height="14" Canvas.Left="183" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Yellow_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        	<Image x:Name="Boost_Red_On_1" Height="14" Canvas.Left="232" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        	<Image x:Name="Boost_Red_On_2" Height="14" Canvas.Left="280" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        	<Image x:Name="Boost_Red_On_3" Height="14" Canvas.Left="328" Source="game:/media/cars/MIT_GalantVR4_92/UI/Textures/MIT_GalantVR4_92_Red_Light_Off.png" Stretch="Fill" Canvas.Top="64" Width="40" Visibility="Hidden" Opacity="0.4"/>
        </Canvas>
        <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 BoostAnim}" Target="{StaticResource Boost Analog}"/>
	</Canvas>
</Page>