|
@@ -0,0 +1,231 @@
|
|
|
|
|
+<UserControl x:Class="OHV.Module.Status.DriveStateView"
|
|
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
+ xmlns:local="clr-namespace:OHV.Module.Status"
|
|
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
|
|
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
|
|
+ mc:Ignorable="d"
|
|
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
+ <Grid Background="#263238">
|
|
|
|
|
+ <Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="31"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock Margin="10,0,0,0" Text="Drive Monitor" VerticalAlignment="Stretch" HorizontalAlignment="Left" FontSize="20" Foreground="White"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="3">
|
|
|
|
|
+ <TextBlock Text="Front" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="4">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="5">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="6">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="7">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="8">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="0">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" Background="#FF349FDA" Foreground="White" BorderBrush="Transparent"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IsIndicatorVisible="False"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.Value="50"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IsIndeterminate="True"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IndicatorForeground="Gray"
|
|
|
|
|
+ Content="{materialDesign:PackIcon CarInsurance, Size=35}"
|
|
|
|
|
+ />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="1">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Speed" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="2">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Rpm" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="3">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Torque" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="4">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="LoadFactor" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="3" Grid.Column="1">
|
|
|
|
|
+ <TextBlock Text="{Binding FrontSpeed, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="3" Grid.Column="2">
|
|
|
|
|
+ <TextBlock Text="{Binding FrontRpm, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="3" Grid.Column="3">
|
|
|
|
|
+ <TextBlock Text="{Binding FrontTorque, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="3" Grid.Column="4">
|
|
|
|
|
+ <TextBlock Text="{Binding FrontLoadFactor, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <StackPanel>
|
|
|
|
|
+ <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ <RowDefinition Height="*"/>
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="0">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="1">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2">
|
|
|
|
|
+ <TextBlock Text="Back" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="3">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="4">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="5">
|
|
|
|
|
+ <TextBlock/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="6">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="7">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="8">
|
|
|
|
|
+ <TextBlock />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="0">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" Background="#FF349FDA" Foreground="White" BorderBrush="Transparent"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IsIndicatorVisible="False"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.Value="50"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IsIndeterminate="True"
|
|
|
|
|
+ materialDesign:ButtonProgressAssist.IndicatorForeground="Gray"
|
|
|
|
|
+ Content="{materialDesign:PackIcon CarInsurance, Size=35}"
|
|
|
|
|
+ />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="1">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Speed" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="2">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Rpm" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="3">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="Torque" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="1" Grid.Column="4">
|
|
|
|
|
+ <Border BorderBrush="{x:Null}" BorderThickness="1">
|
|
|
|
|
+ <TextBlock Text="LoadFactor" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Gray" FontSize="20"/>
|
|
|
|
|
+ </Border>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="1">
|
|
|
|
|
+ <TextBlock Text="{Binding BackSpeed, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="2">
|
|
|
|
|
+ <TextBlock Text="{Binding BackRpm, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="3">
|
|
|
|
|
+ <TextBlock Text="{Binding BackTorque, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ <Grid Grid.Row="2" Grid.Column="4">
|
|
|
|
|
+ <TextBlock Text="{Binding BackLoadFactor, FallbackValue=0.0}" VerticalAlignment="Stretch" HorizontalAlignment="Center" FontSize="20" Foreground="Orange"/>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+</UserControl>
|