<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.TOY_YarisGR_21"
	 >

    <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="True" UseDegreesF="False" UseMPH="False" UsePsi="True" MaxBoost="30" MinBoost="-15" MaxSpeed="100" 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="8000"/>

        <Storyboard x:Key="Boost Gauge">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_TOY_YarisGR_21_BoostNeedle_png">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="270"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="Textures_TOY_YarisGR_21_BoostNeedle_png_Copy">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="270"/>
            </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>


    <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_Black" Fill="Black" Height="720.5" Stroke="Black" Width="1281.049"/>
        <local:FastTextBlock x:Name="Text_External_Temp_Copy2" Text="19.5"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="36" TextAlignment="Right" Height="39" Canvas.Left="1082" Canvas.Top="170" Width="72" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <local:FastTextBlock x:Name="Text_External_Temp_Copy1" Text="19.5"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="36" TextAlignment="Right" Height="42" Canvas.Left="1082" Canvas.Top="500" Width="69" RenderTransformOrigin="0.5,0.5">
            <local:FastTextBlock.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="-90"/>
                    <TranslateTransform/>
                </TransformGroup>
            </local:FastTextBlock.RenderTransform>
        </local:FastTextBlock>
        <Grid x:Name="Sport" Height="720" Width="420" Canvas.Left="460" RenderTransformOrigin="0.5,0.5">
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.35" ScaleY="1.35"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Grid.RenderTransform>
            <Image x:Name="TOY_YarisGR_21_Driver_Sport_png" Source="game:/media/cars/TOY_YarisGR_21/UI/Textures/TOY_YarisGR_21_Driver_Sport.png" Stretch="Fill" 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_TOY_YarisGR_21_BoostNeedle_png_Copy" Source="game:/media/cars/TOY_YarisGR_21/UI/Textures/TOY_YarisGR_21_BoostNeedle.png" Stretch="Fill" RenderTransformOrigin="0.5,-0.052" Margin="206,379.089,206,200.911">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform Y="19.32"/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <local:FastTextBlock x:Name="Text_External_Temp_Copy" Text="{Binding ExternalTemp}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="26" TextAlignment="Right" Margin="70,245,290,445"/>
            <local:FastTextBlock x:Name="Text_Odometer_Copy" Text="{Binding Odometer}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="28" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Margin="211.77,591.327,87.113,93.673">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.9"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock_Copy" Text="{Binding Time}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="26" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="280,245,80,445">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1.25" ScaleY="1.3"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
        </Grid>
        <Grid x:Name="Track" Height="720" Width="420" RenderTransformOrigin="0.5,0.5" Canvas.Left="9">
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1.35" ScaleY="1.35"/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Grid.RenderTransform>
            <Image x:Name="Textures_TOY_YarisGR_21_Driver_png" Source="game:/media/cars/TOY_YarisGR_21/UI/Textures/TOY_YarisGR_21_Driver.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Image x:Name="Textures_TOY_YarisGR_21_BoostNeedle_png" Source="game:/media/cars/TOY_YarisGR_21/UI/Textures/TOY_YarisGR_21_BoostNeedle.png" Stretch="Fill" RenderTransformOrigin="0.5,-0.052" Margin="206,379.089,206,200.911">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleY="0.75" ScaleX="0.75"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform Y="19.32"/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <local:FastTextBlock x:Name="Text_External_Temp" Text="{Binding ExternalTemp}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="26" TextAlignment="Right" Margin="70,245,290,445"/>
            <local:FastTextBlock x:Name="Text_Odometer" Text="{Binding Odometer}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="28" TextAlignment="Right" RenderTransformOrigin="0.5,0.5" Margin="211.77,591.327,87.113,93.673">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="0.9"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
            <local:FastTextBlock x:Name="Text_Clock" Text="{Binding Time}"   FontFamily="DG1_ArialBold" Foreground="White" FontSize="26" TextAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="280,245,80,445">
                <local:FastTextBlock.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1.25" ScaleY="1.3"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:FastTextBlock.RenderTransform>
            </local:FastTextBlock>
        </Grid>
        <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 Gauge}"/>
    </Canvas>
</Page>