From e3868d4d61ded0e76fc8fe3fdacdd9e6d9113cf1 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 13 十月 2025 08:50:15 +0800
Subject: [PATCH] 优化HMI;
---
Plugin.TestResult/Util/DpUtil.cs | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/Plugin.TestResult/Util/DpUtil.cs b/Plugin.TestResult/Util/DpUtil.cs
index cc3c52c..e164f1f 100644
--- a/Plugin.TestResult/Util/DpUtil.cs
+++ b/Plugin.TestResult/Util/DpUtil.cs
@@ -30,17 +30,6 @@
public static readonly DependencyProperty BorderSpaceProperty =
DependencyProperty.RegisterAttached("BorderSpace", typeof(int), typeof(Grid), new PropertyMetadata(0, OnShowBorderChanged));
- public static string GetInnerBorderIgnore(DependencyObject obj)
- {
- return (string)obj.GetValue(InnerBorderIgnoreProperty);
- }
- public static void SetInnerBorderIgnore(DependencyObject obj, string value)
- {
- obj.SetValue(InnerBorderIgnoreProperty, value);
- }
- public static readonly DependencyProperty InnerBorderIgnoreProperty =
- DependencyProperty.RegisterAttached("InnerBorderIgnore", typeof(string),
- typeof(Grid), new PropertyMetadata("None", OnShowBorderChanged));
private static void OnShowBorderChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
@@ -74,7 +63,7 @@
int width = 1;
- string baseData = GetInnerBorderIgnore(grid);
+ string baseData = "None";
HashSet<string> data = new HashSet<string>(baseData.Split(','));
bool ignoreTop = data.Contains("All") || data.Contains("Top"),
ignoreBottom = data.Contains("All") || data.Contains("Bottom"),
@@ -195,7 +184,7 @@
int col = i % columnCount;
var child = grid.Children[i];
- string baseData = GetInnerBorderIgnore(grid);
+ string baseData = "None";
HashSet<string> data = new HashSet<string>(baseData.Split(','));
bool ignoreTop = data.Contains("All") || data.Contains("Top"),
ignoreBottom = data.Contains("All") || data.Contains("Bottom"),
--
Gitblit v1.9.1