<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.BMW_M5E28_HE_88">
	
    <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="True" HasExternalTemp="False" UseDegreesF="True" UseMPH="True" 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="False" HasTextFuel="False" MaxFuel="20" MaxGear="8" MaxRpm="7000"></local:DigitalGaugeConfig>
        
		<Storyboard x:Key="Tach">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Tach_Slider">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</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>
	
    <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_Grey" Fill="#FF606060" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0" />
        <Rectangle x:Name="Background_Shift_Lights" Fill="Black" Height="107" Canvas.Left="333" Canvas.Top="139" Width="609"/>
        <Rectangle x:Name="Background_Clock" Fill="Black" Height="90" Canvas.Top="302" Width="250" Canvas.Left="527"/>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <local:FastTextBlock x:Name="Text_Clock" Canvas.Left="526.003" Canvas.Top="298.166" Text="{Binding Time}" Width="220" FontSize="64" Style="{StaticResource TextBlockStyle}" Foreground="#FFFB2E19" FontFamily="DG5_QuartzMS"/>
		</Canvas>
        <Canvas x:Name="Shift_Lights" Height="92" Width="600" Canvas.Left="340" Canvas.Top="29.5">
        	<Canvas x:Name="OFF" Height="92" Width="599.333">
        		<Image x:Name="GreenLight_1_Off" Height="20" Canvas.Left="130.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Green_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="GreenLight_2_Off" Height="20" Canvas.Left="175.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Green_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="GreenLight_3_Off" Height="20" Canvas.Left="220.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Green_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="GreenLight_4_Off" Height="20" Canvas.Left="265.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Green_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="GreenLight_5_Off" Height="20" Canvas.Left="310.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Green_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="YellowLight_Off" Height="20" Canvas.Left="355.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Yellow_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="RedLight_1_Off" Height="20" Canvas.Left="400.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Red_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="RedLight_2_Off" Height="20" Canvas.Left="445.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Red_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        		<Image x:Name="RedLight_3_Off" Height="20" Canvas.Left="490.999" Source="game:/media/cars/BMW_M5E28_HE_88/UI/Textures/BMW_M5E28_88_Red_ShiftLight_Off.png" Stretch="Fill" Canvas.Top="158.645" Width="30" RenderTransformOrigin="0.5,0.5" Opacity="0.2">
        			<Image.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform ScaleX="1.2" ScaleY="1.2"/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Image.RenderTransform>
        		</Image>
        	</Canvas>
        </Canvas>
		<Canvas x:Name="Tach_Animation" Height="29.5" Canvas.Left="399" Canvas.Top="259" Width="471.5">
			<Rectangle x:Name="Tach_Slider" Fill="Yellow" Height="4" Canvas.Left="18.5" Canvas.Top="15.5" Width="444" RenderTransformOrigin="0,0.5">
				<Rectangle.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="0"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</Rectangle.RenderTransform>
			</Rectangle>
		</Canvas>
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="668" Stroke="Black" Width="1186" Canvas.Left="58" Canvas.Top="53" Opacity="0"/>
	
	</Canvas>
</Page>