CNC运行与底部状态栏提醒

This commit is contained in:
zhengxuan.zhang
2026-04-28 10:28:41 +08:00
parent 2a64d48b54
commit 06714f819f
3 changed files with 84 additions and 4 deletions
+16 -2
View File
@@ -106,6 +106,7 @@
<StackPanel>
<telerik:RadRibbonButton
telerik:ScreenTip.Title="运行"
Command="{Binding RunCncCommand}"
Size="Large"
SmallImage="/Assets/Icons/run.png"
Text="运行" />
@@ -114,6 +115,7 @@
<telerik:RadRibbonButton
telerik:ScreenTip.Description="停止"
telerik:ScreenTip.Title="停止"
Command="{Binding StopCncCommand}"
Size="Large"
SmallImage="/Assets/Icons/stop.png"
Text="停止" />
@@ -554,7 +556,19 @@
FontFamily="Microsoft YaHei UI"
FontSize="11"
Foreground="White"
Text="就绪" />
Text="{Binding CncStatusMessage}">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="White" />
<Style.Triggers>
<DataTrigger Binding="{Binding CncHasExecutionError}" Value="True">
<Setter Property="Foreground" Value="#FF9090" />
<Setter Property="FontWeight" Value="SemiBold" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<TextBlock
Grid.Column="1"
@@ -563,7 +577,7 @@
FontFamily="Consolas"
FontSize="11"
Foreground="White"
Text="x: 0 y: 0 RGB: 0 0 0" />
Text="x: 0 y: 0" />
</Grid>
</Border>
</Grid>