From f08871fe7d148d667f2f11f80f64de71a0d9504c Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 15 六月 2026 18:19:37 +0800
Subject: [PATCH] 优化标准老化界面
---
HMI.StdControl/StdEnableMes.xaml.cs | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/HMI.StdControl/StdEnableMes.xaml.cs b/HMI.StdControl/StdEnableMes.xaml.cs
index 46a8cb2..2dce02b 100644
--- a/HMI.StdControl/StdEnableMes.xaml.cs
+++ b/HMI.StdControl/StdEnableMes.xaml.cs
@@ -2,6 +2,7 @@
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
+using System.Windows;
using System.Windows.Controls;
namespace HMI.StdControl
@@ -44,6 +45,21 @@
}
}
+ public static DependencyProperty CbEnabledProperty = DependencyProperty.Register(
+ "CbEnabled",
+ typeof(bool),
+ typeof(StdEnableMes),
+ new FrameworkPropertyMetadata(true));
+
+ public bool CbEnabled
+ {
+ get => (bool)GetValue(CbEnabledProperty);
+ set
+ {
+ SetValue(CbEnabledProperty, value);
+ }
+ }
+
private bool enableMes;
public bool EnableMes
{
--
Gitblit v1.9.1