<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.FOR_FalconXR8_15">
	
    <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="True" UseMPH="False" UsePsi="False" MaxBoost="1" MinBoost="0" MaxSpeed="120" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="15000"></local:DigitalGaugeConfig>
		<Storyboard x:Key="G Accel Horizontal">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Horizontal">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="106.947"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="G Accel Vertical">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Vertical">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
				<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="-104.921"/>
			</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)[2].(RotateTransform.Angle)" Storyboard.TargetName="Boost_Needle">
				<EasingDoubleKeyFrame KeyTime="0" Value="-127.902"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="-102.356"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-76.391"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-51.104"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-25.816"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="26.071"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="51.608"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="77.587"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="103.785"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="129.604"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
			<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_Grey" Fill="Black" Height="720" Width="1280" Canvas.Left="0" Canvas.Top="0" />
		<Image x:Name="Graphics_Center_Console" Height="373" Canvas.Left="600" Source="game:/media/cars/FOR_FalconXR8_15/UI/Textures/FOR_PursuitUte_15_Graphics.png" Stretch="Fill" Canvas.Top="184" Width="614"/>
		<Image x:Name="Graphics_Dashboard" Height="206" Canvas.Left="214" Source="game:/media/cars/FOR_FalconXR8_15/UI/Textures/FOR_PursuitUte_15_Odo.png" Stretch="Fill" Canvas.Top="258" Width="186"/>
        <Canvas x:Name="G_Meter" Height="12" Width="12" Canvas.Left="849" Canvas.Top="504">
        	<Canvas x:Name="Vertical" Height="12" Width="12" Canvas.Left="0" Canvas.Top="0" RenderTransformOrigin="0.5,0.5">
        		<Canvas.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Canvas.RenderTransform>
        		<Canvas x:Name="Horizontal" Height="12" Width="12" Canvas.Left="0" Canvas.Top="0" RenderTransformOrigin="0.5,0.5">
        			<Canvas.RenderTransform>
        				<TransformGroup>
        					<ScaleTransform/>
        					<SkewTransform/>
        					<RotateTransform/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</Canvas.RenderTransform>
        			<Image x:Name="Marker" Height="12" Canvas.Left="0" Source="game:/media/cars/FOR_FalconXR8_15/UI/Textures/FOR_PursuitUte_15_GForce_marker.png" Stretch="Fill" Canvas.Top="0" Width="12"/>
        		</Canvas>
        	</Canvas>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280">
            <TextBlock x:Name="Text_Odometer" Canvas.Left="232" Canvas.Top="435.413" Text="{Binding Odometer}" Width="160" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="White">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.2"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Speedo" Canvas.Left="208" Canvas.Top="316.243" Text="{Binding Speed}" Width="200" FontSize="53.333" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center"/>
            <TextBlock x:Name="Text_Trip" Canvas.Left="232" Canvas.Top="262.186" Text="{Binding TripMeter}" Width="160" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="White">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleY="1.2"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Gear" Canvas.Left="208" Canvas.Top="431.413" Text="{Binding Gear}" Width="60" FontSize="26.667" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.2"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_GAccel_Shadow" Canvas.Left="956" Canvas.Top="443.053" Text="{Binding GAccelText}" Width="140" FontSize="34.667" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="Black" TextAlignment="Right">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.2"/>
            			<SkewTransform AngleX="-15"/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_GAccel" Canvas.Left="954" Canvas.Top="441.053" Text="{Binding GAccelText}" Width="140" FontSize="34.667" Style="{StaticResource TextBlockStyle}" FontFamily="Moire" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Right">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.2"/>
            			<SkewTransform AngleX="-15"/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
            <TextBlock x:Name="Text_Clock" Canvas.Left="1014" Canvas.Top="200" Text="{Binding Time}" Width="160" FontSize="21.333" Style="{StaticResource TextBlockStyle}" FontFamily="DG1_Arial" RenderTransformOrigin="0.5,0.5" Foreground="White">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1.1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            </TextBlock>
		</Canvas>
		<Canvas x:Name="Boost_Animation" Height="253.334" Canvas.Left="780.001" Canvas.Top="170.003" Width="253.334">
			<Image x:Name="Boost_Needle" Height="69" Canvas.Left="121" Source="game:/media/cars/FOR_FalconXR8_15/UI/Textures/FOR_PursuitUte_15_Needle.png" Stretch="Fill" Canvas.Top="64.747" Width="13" RenderTransformOrigin="0.5,0.895">
				<Image.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-127.902"/>
						<TranslateTransform/>
					</TransformGroup>
				</Image.RenderTransform>
			</Image>
		</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 BoostAnim}" Target="{StaticResource Boost Analog}"/>
		<local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
		<local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
		
	</Canvas>
</Page>