<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"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d"
	x:Class="ForzaUI.NIS_GTRNISMO_24">

    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG1_Arial"/>
            <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="20" MinBoost="-15" MaxSpeed="107.29" 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="00" MinGear="0" MaxGear="6" MaxRpm="0000.0"/>

        <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="(ed:Arc.StartAngle)" Storyboard.TargetName="Boost_Mask">
                <EasingDoubleKeyFrame KeyTime="0" Value="-118"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="113"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>

    <Canvas x:Name="LayoutRoot" Background="Transparent" Width="1280" Height="720">
        <Rectangle x:Name="BG" Fill="Black" Height="720" Canvas.Left="0" Canvas.Top="0" Width="1280"/>
        <Image x:Name="Textures_NIS_GTRNismo_19_CenterBG_png" Height="537.183" Source="game:/media/cars/NIS_GTRNISMO_24/UI/Textures/NIS_GTRNismo_19_CenterBG.png" Stretch="Fill" Width="858" Canvas.Top="17.5" Canvas.Left="16"/>
        <Image x:Name="Textures_NIS_GTRNismo_19_CenterBoost_png" Height="537.183" Source="game:/media/cars/NIS_GTRNISMO_24/UI/Textures/NIS_GTRNismo_19_CenterBoost.png" Stretch="Fill" Width="858" Canvas.Top="17.5" Canvas.Left="16"/>
        <ed:Arc x:Name="Boost_Mask" ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="114" Fill="#FF191919" Height="372" Canvas.Left="115.333" Stretch="None" StartAngle="-118" Canvas.Top="174.004" Width="372"/>
        <Image x:Name="Textures_NIS_GTRNismo_19_Main_png" Height="537.183" Source="game:/media/cars/NIS_GTRNISMO_24/UI/Textures/NIS_GTRNismo_19_Main.png" Stretch="Fill" Width="387.965" Canvas.Top="17.5" Canvas.Left="875.5"/>
        <Canvas x:Name="Text" Height="424.833" Canvas.Left="630" Canvas.Top="27.5" Width="576">
            <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="53" Canvas.Left="323"   Canvas.Top="371.833" Width="138" FontFamily="DG1_Arial" Foreground="White" FontSize="48" TextAlignment="Right"/>
            <local:FastTextBlock x:Name="Text_Speed_2" Text="{Binding Speed}" Height="82.333"   Canvas.Top="305.476" Width="171.334" FontFamily="DG1_Arial" FontSize="72" Foreground="White" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_Trip_Odo" Text="{Binding TripMeter}" Height="24" Canvas.Left="500"   Canvas.Top="306.5" Width="76" Foreground="White" TextAlignment="Right" FontFamily="DG1_Arial" FontSize="20"/>
            <local:FastTextBlock x:Name="Text_Gear" Text="{Binding Gear}" Height="156" Canvas.Left="392"   Canvas.Top="42.5" Width="100" FontFamily="DG5_QuartzMS" FontSize="120" Foreground="White" TextAlignment="Center"/>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}" Height="52.5" Canvas.Left="75"   Width="139.5" FontFamily="DG1_Arial" Foreground="White" FontSize="48" TextAlignment="Right"/>
        </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}"/>
    </Canvas>
</Page>