From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +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