From 9211ec11c112e18cd99e77f889a01110a70031ce Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 24 十一月 2025 17:47:15 +0800
Subject: [PATCH] 优化项目结构
---
HMI.UI/Controls/LightBall.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/HMI.UI/Controls/LightBall.cs b/HMI.UI/Controls/LightBall.cs
index d9ffd5c..3cb1c08 100644
--- a/HMI.UI/Controls/LightBall.cs
+++ b/HMI.UI/Controls/LightBall.cs
@@ -12,7 +12,7 @@
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
"Value",
- typeof(bool),
+ typeof(bool?),
typeof(LightBall),
new FrameworkPropertyMetadata(false));
@@ -31,9 +31,9 @@
}
}
- public bool Value
+ public bool? Value
{
- get => (bool)GetValue(ValueProperty);
+ get => (bool?)GetValue(ValueProperty);
set
{
SetValue(ValueProperty, value);
--
Gitblit v1.9.1