65 lines
2.6 KiB
XML
65 lines
2.6 KiB
XML
<Window x:Class="HC_APTBS.Views.Dialogs.KlineErrorsDialog"
|
|
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"
|
|
mc:Ignorable="d"
|
|
Title="K-Line Fault Codes"
|
|
Height="400" Width="600"
|
|
ResizeMode="CanResize"
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Header + action buttons -->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="Fault codes:" VerticalAlignment="Center" FontSize="14" FontWeight="SemiBold"/>
|
|
|
|
<Button Grid.Column="1" Content="Read" Margin="0,2,8,2"
|
|
Width="75" Height="24"
|
|
Command="{Binding ReadErrorsCommand}"/>
|
|
<Button Grid.Column="2" Content="Clear" Margin="0,2,0,2"
|
|
Width="75" Height="24"
|
|
Command="{Binding ClearErrorsCommand}"/>
|
|
</Grid>
|
|
|
|
<!-- Fault code text -->
|
|
<TextBox Grid.Row="1"
|
|
Text="{Binding ErrorText, Mode=OneWay}"
|
|
IsReadOnly="True" IsReadOnlyCaretVisible="True"
|
|
TextWrapping="Wrap"
|
|
FontFamily="Consolas" FontSize="12"
|
|
VerticalScrollBarVisibility="Auto"/>
|
|
</Grid>
|
|
|
|
<!-- Footer: progress bar + close button -->
|
|
<Grid Grid.Row="1" Margin="10,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<ProgressBar Value="{Binding ProgressPercent, Mode=OneWay}"
|
|
Minimum="0" Maximum="100"
|
|
VerticalAlignment="Center" Margin="0,0,10,0"/>
|
|
<Button Grid.Column="1" Content="Close" Width="80" Height="24"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding CloseCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|