From 2e889843b4c171f2d6ad8e0d53084040703d11f6 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 13:18:21 +0800
Subject: [PATCH] docs: CAN 总线级应答器 + 硬件调试页多标签多会话 设计规格
---
HMI.UI/DpUtil/UniformGridHelper.cs | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/HMI.UI/DpUtil/UniformGridHelper.cs b/HMI.UI/DpUtil/UniformGridHelper.cs
index 6f98327..1b12a2b 100644
--- a/HMI.UI/DpUtil/UniformGridHelper.cs
+++ b/HMI.UI/DpUtil/UniformGridHelper.cs
@@ -108,6 +108,24 @@
control.BorderThickness = bt;
}
+ if (child is Border border)
+ {
+
+ int col = i % columnCount;
+ int row = i / columnCount;
+
+ double left = (col == 0 && ignoreLeft) ? 0 : width;
+ double top = (row == 0 && ignoreTop) ? 0 : width;
+
+ double right = ignoreRight ? 0 : ((col == columnCount - 1) ? width : 0);
+ double bottom = ignoreBottom ? 0 : ((row == rowCount - 1) ? width : 0);
+
+ var bt = new Thickness(left, top, right, bottom);
+
+ border.BorderBrush = brush;
+ border.BorderThickness = bt;
+ }
+
}
}
--
Gitblit v1.9.1