wenxiangchao
2026-11-02 9d1660270272180cd71147d6ddd53d1382643d2e
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;
                }
            }
        }