<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="DigitalGauge.HYU_Ioniq5N_23"
	 >

    <Page.Resources>
        <Style x:Key="TextBlockStyle" TargetType="{x:Type local:FastTextBlock}">
            <Setter Property="FontFamily" Value="DG2_LCD"/>
            <Setter Property="Foreground" Value="#FFF52233"/>
             
            <Setter Property="TextAlignment" Value="Right"/>
        </Style>

        <BooleanToVisibilityConverter x:Key="BoolVisConverter" />

        <local:DigitalGaugeConfig x:Key="Config" HasClock="True" HasExternalTemp="False" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="23.99" MinBoost="0" MaxSpeed="83.3" HasAbsLight="False" HasStmLight="False" HasTcsLight="False" HasGAccelX="True" HasGAccelY="True" HasShiftLights="True" HasTextTach="False" HasLapPlaceInfo="True" HasTextBoost="True" HasTextGAccel="True" HasTextOdometer="True" HasTextFuel="True" MaxFuel="40.0" MinGear="-1" MaxGear="1" MaxRpm="8000"/>

        <Storyboard x:Key="Fuel Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="Textures_HYU_Ioniq5N_23_Fuel_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.75"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Textures_HYU_Ioniq5N_23_Fuel_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-57.755"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
            </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="Speed Analog">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_HYU_Ioniq5N_23_Needle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="-108"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="-81"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-54"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="-27"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="17.977"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="36"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="54"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="72"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.9" Value="90"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="107.87"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Gear Analog">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_HYU_Ioniq5N_23_GearD_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Textures_HYU_Ioniq5N_23_GearN_png">
                <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="Textures_HYU_Ioniq5N_23_GearR_png">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Hidden}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:1" Value="{x:Static Visibility.Hidden}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="G Accel Vertical">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Vertical">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="-108.503"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <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="107"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded" SourceName="LayoutRoot">
            <BeginStoryboard x:Name="Speed_Analog_BeginStoryboard" Storyboard="{StaticResource Speed Analog}"/>
            <BeginStoryboard x:Name="Gear_Analog_BeginStoryboard" Storyboard="{StaticResource Gear Analog}"/>
            <BeginStoryboard x:Name="G_Accel_Vertical_BeginStoryboard" Storyboard="{StaticResource G Accel Vertical}"/>
            <BeginStoryboard x:Name="G_Accel_Horizontal_BeginStoryboard" Storyboard="{StaticResource G Accel Horizontal}"/>
        </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>

        <!-- Storyboard binding controllers -->
        <Rectangle x:Name="Background_Black" Fill="Black" Height="720" Width="1280"/>

        <!-- Storyboard binding controllers -->
        <Rectangle x:Name="Start_Up_Mask" Fill="Black" Height="720" Stroke="Black" Width="1280" Canvas.Left="0" Canvas.Top="0" Opacity="0"/>
        <Image x:Name="Textures_HYU_Ioniq5N_23_Center_png" Height="500" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_Center.png" Stretch="Fill" Width="1200" RenderTransformOrigin="0.5,0.5" Canvas.Top="303" Canvas.Left="40">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_HYU_Ioniq5N_23_Driver_png" Height="500" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_Driver.png" Stretch="Fill" Width="1200" RenderTransformOrigin="0.5,0.5" Canvas.Top="-60" Canvas.Left="40">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Image x:Name="Textures_HYU_Ioniq5N_23_Needle_png" Height="116" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_Needle.png" Stretch="Fill" Width="10" RenderTransformOrigin="0.5,2.017" Canvas.Left="635" Canvas.Top="55">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                    <SkewTransform/>
                    <RotateTransform Angle="-108"/>
                    <TranslateTransform Y="-43.993"/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
        <Canvas x:Name="Gears" Height="24" Width="22" Canvas.Left="748" Canvas.Top="324.5">
            <Image x:Name="Textures_HYU_Ioniq5N_23_GearD_png" Height="24" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_GearD.png" Stretch="Fill" Width="22" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_HYU_Ioniq5N_23_GearN_png" Height="24" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_GearN.png" Stretch="Fill" Width="22" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_HYU_Ioniq5N_23_GearR_png" Height="24" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_GearR.png" Stretch="Fill" Width="22" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
        </Canvas>
        <Canvas x:Name="GMeter" Height="20" Canvas.Left="885" Canvas.Top="250" Width="20">
            <Canvas x:Name="Vertical" Height="20" Width="20" RenderTransformOrigin="0.5,0.5">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas x:Name="Horizontal" Height="20" Width="20" RenderTransformOrigin="0.5,0.5">
                    <Canvas.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Canvas.RenderTransform>
                    <Image x:Name="Textures_HYU_Ioniq5N_23_GBall_png" Height="20" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_GBall.png" Stretch="Fill" Width="20" RenderTransformOrigin="0.5,0.5">
                        <Image.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Image.RenderTransform>
                    </Image>
                </Canvas>
            </Canvas>
        </Canvas>
        <local:FastTextBlock x:Name="Text_CurLapTime" Text="{Binding CurLapTime}" Height="25" Canvas.Left="515"   Canvas.Top="605" Width="165" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="24" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.3" ScaleY="1.15"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_Clock"  Text="{Binding Time}" Height="25" Canvas.Left="885"   Canvas.Top="410" Width="80" FontFamily="DG1_Arial" Foreground="White" FontSize="20" TextAlignment="Right"/>
        <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}" Height="18.75" Canvas.Left="967"   Canvas.Top="329.25" Width="90" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Right" FontSize="18"/>
        <local:FastTextBlock x:Name="Text_GMeter" Text="{Binding GAccelText}" Height="13.25" Canvas.Left="935"   Canvas.Top="131.75" Width="25" FontFamily="DG1_Arial" Foreground="White" TextAlignment="Center"/>
        <local:FastTextBlock x:Name="Text_Speed" Text="{Binding Speed}" Height="45" Canvas.Left="575"   Canvas.Top="196.5" Width="125" TextAlignment="Center" FontFamily="Moire" Foreground="White" FontSize="36" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.2" ScaleY="1.15"/>
                    <SkewTransform AngleX="-12"/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:StoryboardController SeekPct="{Binding Fuel}" Target="{StaticResource Fuel Gauge}"/>
        <local:StoryboardController SeekPct="{Binding AnalogSpeed}" Target="{StaticResource Speed Analog}"/>
        <local:StoryboardController SeekPct="{Binding AnalogGear}" Target="{StaticResource Gear Analog}"/>
        <local:StoryboardController SeekPct="{Binding GAccelY}" Target="{StaticResource G Accel Vertical}"/>
        <local:StoryboardController SeekPct="{Binding GAccelX}" Target="{StaticResource G Accel Horizontal}"/>
        <Image x:Name="Textures_HYU_Ioniq5N_23_Fuel_png" Height="8" Source="game:/media/cars/HYU_Ioniq5N_23/UI/Textures/HYU_Ioniq5N_23_Fuel.png" Stretch="Fill" Width="154" RenderTransformOrigin="0.5,0.5" Canvas.Left="870.229" Canvas.Top="306.729">
            <Image.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="0.75" ScaleY="0.85"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Image.RenderTransform>
        </Image>
    </Canvas>
</Page>