From f08871fe7d148d667f2f11f80f64de71a0d9504c Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 15 六月 2026 18:19:37 +0800
Subject: [PATCH] 优化标准老化界面
---
Plugin.TestResult/ViewControl.xaml | 34 ++++++++++++++++++++++++++++------
1 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/Plugin.TestResult/ViewControl.xaml b/Plugin.TestResult/ViewControl.xaml
index 9e29eb9..0b2de18 100644
--- a/Plugin.TestResult/ViewControl.xaml
+++ b/Plugin.TestResult/ViewControl.xaml
@@ -41,11 +41,24 @@
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>-->
<local:TestResultView x:Name="testResultView" Grid.Row="1" Grid.Column="0" Loaded="testResultView_Loaded" />
- <DockPanel Margin="10,0" Grid.Row="0" Grid.Column="1" Background="#FFF" VerticalAlignment="Center">
+ <DockPanel Margin="10,0" Grid.Row="0" Grid.Column="1" LastChildFill="False" Background="#FFF" VerticalAlignment="Center">
<pu:FormGroup DockPanel.Dock="Right">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" dp:StackPanelHelper.ChildSpace="20">
- <Button x:Name="btnStart" Click="Start_Click" Style="{StaticResource SuccessButton}"
- Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.Start}"/>
+ <Button x:Name="btnStart" Click="Start_Click"
+ Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.Start}">
+ <Button.Style>
+ <Style TargetType="Button" BasedOn="{StaticResource SuccessButton}">
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding EnableManualDebug}" Value="True">
+ <Setter Property="IsEnabled" Value="False"/>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding IsRunning}" Value="True">
+ <Setter Property="IsEnabled" Value="False"/>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Button.Style>
+ </Button>
<Button x:Name="btnStop" Click="Stop_Click" Style="{StaticResource DangerButton}"
Width="100" FontSize="14" Padding="0" Height="30"
@@ -56,7 +69,7 @@
Content="{DynamicResource Ts.BtnClearNum}"/>
<Button x:Name="scannerSetting" Click="ScannerSetting_Click" Style="{StaticResource PrimaryButton}"
- Width="100" FontSize="14" Padding="0" Height="30" Content="鎵爜鏋缃�" Cursor="Hand"/>
+ Width="100" FontSize="14" Padding="0" Height="30" Content="{DynamicResource App.ScannerSetting}" Cursor="Hand"/>
<!--<Button x:Name="btnScan1" Click="Scan_Click_1" Style="{StaticResource PrimaryButton}"
Content="{DynamicResource Tr.Zone1Scan}"/>
@@ -72,13 +85,22 @@
SelectionChanged="modelSelect_SelectionChanged"/>
</pu:FormGroup>
- <pu:FormGroup Header="娴嬭瘯绋嬪簭" FontSize="16">
+ <pu:FormGroup Header="{DynamicResource Tr.TestProgram}" FontSize="16">
<TextBox IsReadOnly="True" x:Name="tbFileName" Style="{StaticResource EditorTextBoxStyle}" Width="200"
Height="28" Text="{Binding FileName}"/>
</pu:FormGroup>
<pu:FormGroup>
- <std:StdEnableMes DockPanel.Dock="Left" FontSize="20" ValueChanged="StdEnableMes_ValueChanged"/>
+ <std:StdEnableMes DockPanel.Dock="Left" FontSize="20"
+ x:Name="stdEnableMes"
+ ValueChanged="StdEnableMes_ValueChanged"/>
+ </pu:FormGroup>
+
+ <pu:FormGroup x:Name="FgEnableManualDebug" Visibility="Collapsed">
+ <CheckBox FontSize="20"
+ IsChecked="{Binding EnableManualDebug,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
+ VerticalContentAlignment="Center"
+ Content="鎵嬪姩璋冭瘯" />
</pu:FormGroup>
--
Gitblit v1.9.1