From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.UI/Controls/LightBall.cs | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/Controls/LightBall.cs b/HMI.UI/Controls/LightBall.cs
new file mode 100644
index 0000000..3cb1c08
--- /dev/null
+++ b/HMI.UI/Controls/LightBall.cs
@@ -0,0 +1,43 @@
+锘縰sing System.Windows;
+using System.Windows.Controls;
+
+namespace HMI.UI
+{
+ public class LightBall : ContentControl
+ {
+ static LightBall()
+ {
+ DefaultStyleKeyProperty.OverrideMetadata(typeof(LightBall), new FrameworkPropertyMetadata(typeof(LightBall)));
+ }
+
+ public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
+ "Value",
+ typeof(bool?),
+ typeof(LightBall),
+ new FrameworkPropertyMetadata(false));
+
+ public static readonly DependencyProperty SizeProperty = DependencyProperty.Register(
+ "Size",
+ typeof(double),
+ typeof(LightBall),
+ new FrameworkPropertyMetadata(12d));
+
+ public double Size
+ {
+ get => (double)GetValue(SizeProperty);
+ set
+ {
+ SetValue(SizeProperty, value);
+ }
+ }
+
+ public bool? Value
+ {
+ get => (bool?)GetValue(ValueProperty);
+ set
+ {
+ SetValue(ValueProperty, value);
+ }
+ }
+ }
+}
--
Gitblit v1.9.1