<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="DigitalGauge.BEN_Bentayga_16"
	DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}}">
	
    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="DG2_LCD"/>
            <Setter Property="Foreground" Value="#FFFE2A40"/>
            <Setter Property="TextWrapping" Value="NoWrap"/>
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>
		
		<local:DigitalGaugeConfig x:Key="Config" HasClock="False" HasExternalTemp="True" UseDegreesF="False" UseMPH="False" UsePsi="False" MaxBoost="13" MinBoost="1" MaxSpeed="00" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="False" HasGAccelY="False" HasShiftLights="False" HasTextTach="False" HasLapPlaceInfo="False" HasTextBoost="False" HasTextGAccel="False" HasTextOdometer="True" HasTextFuel="False" MaxFuel="20" MinGear="-1" MaxGear="1" MaxRpm="10000"></local:DigitalGaugeConfig>
		<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="Gear Analog">
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_R">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_N">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Gear_D">
				<DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</Page.Resources>
	<Page.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Gear Analog}"/>
		</EventTrigger>
	</Page.Triggers>
	  

	<Canvas x:Name="LayoutRoot" Background="Black" Width="1280" Height="720">
        <Canvas x:Name="Graphics" Height="512" Canvas.Top="152" Width="984" Canvas.Left="-52">
        	<Image x:Name="Gradient" Height="252" Canvas.Left="80" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_gradient.PNG" Stretch="Fill" Canvas.Top="87.673" Width="811" Opacity="0.25"/>
        	<Image x:Name="Icon_Race" Height="92" Canvas.Left="206.334" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_icon_race.PNG" Stretch="Fill" Canvas.Top="50.664" Width="83"/>
        	<Image x:Name="Menu" Height="80" Canvas.Left="368" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_menu.PNG" Stretch="Fill" Canvas.Top="58.681" Width="256"/>
        	<Image x:Name="Slider" Height="37" Canvas.Left="672.666" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_slider.PNG" Stretch="Fill" Canvas.Top="156.673" Width="7"/>
        	<Rectangle x:Name="Slider_Line_Alias" Fill="White" Height="143" Canvas.Left="674.001" Canvas.Top="184.673" Width="4" Opacity="0.3"/>
        	<Rectangle x:Name="Slider_Line_Top" Fill="White" Height="143" Canvas.Left="675" Canvas.Top="184.673" Width="2"/>
        	<Image x:Name="Text_kmh" Height="21" Canvas.Left="542.002" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_text_kmh.PNG" Stretch="Fill" Canvas.Top="224.003" Width="58"/>
        	<Image x:Name="Text_Odo" Height="51" Canvas.Left="310.666" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_text_odo.PNG" Stretch="Fill" Canvas.Top="350.999" Width="109"/>
        	<Image x:Name="Text_Temperature" Height="43" Canvas.Left="652.337" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_text_temp.PNG" Stretch="Fill" Canvas.Top="352.331" Width="24"/>
        	<Image x:Name="Icon_Sport" Height="64" Canvas.Left="720" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_icon_sport.PNG" Stretch="Fill" Canvas.Top="51.344" Width="64"/>
        	<Image x:Name="Logo_Console" Height="90" Canvas.Left="1004" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_Logo.PNG" Stretch="Fill" Canvas.Top="160" Width="265" RenderTransformOrigin="0.5,0.5">
        		<Image.RenderTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-90"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</Image.RenderTransform>
        	</Image>
        </Canvas>
        <Canvas x:Name="Gear_Animation" Height="120" Canvas.Left="356" Canvas.Top="478" Width="168">
        	<Image x:Name="Gear_D" Height="26" Canvas.Left="81.665" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_Gear_D.PNG" Stretch="Fill" Canvas.Top="48.008" Width="22" Visibility="Hidden"/>
        	<Image x:Name="Gear_N" Height="26" Canvas.Left="81.332" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_Gear_N.PNG" Stretch="Fill" Canvas.Top="48.008" Width="22" Visibility="Hidden"/>
        	<Image x:Name="Gear_R" Height="26" Canvas.Left="81.665" Source="game:/media/cars/ben_bentayga_16/UI/Textures/BEN_Bentayga_16_Gear_R.PNG" Stretch="Fill" Canvas.Top="48.008" Width="21"/>
        </Canvas>
		<Canvas x:Name="Text" Height="720" Width="1280" Canvas.Left="-164">
			<TextBlock x:Name="Text_Speed" Canvas.Left="375.631" Canvas.Top="311.326" Text="{Binding Speed}" FontSize="82.667" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="250" Foreground="White" FontFamily="DG1_Arial">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_External_Temp" Canvas.Left="628.334" Canvas.Top="526.666" Text="{Binding ExternalTemp}" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Width="120" Foreground="White" FontFamily="DG1_Arial">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Trip_Odo" Canvas.Left="369.335" Canvas.Top="493" Text="{Binding TripMeter}" Width="100" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White" FontFamily="DG1_Arial">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<TextBlock x:Name="Text_Odometer" Canvas.Left="644.302" Canvas.Top="493" Text="{Binding Odometer}" Width="105.75" FontSize="24" Style="{StaticResource TextBlockStyle}" RenderTransformOrigin="0.5,0.5" Foreground="White" FontFamily="DG1_Arial">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1.2"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
		</Canvas>
		<Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Opacity="0" Canvas.Left="0"/>
		
        <!-- Storyboard binding controllers -->
		<local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
	</Canvas>
</Page>