From dedcf4174c8540ee3a912daad2ff13e014e495b1 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 28 三月 2025 16:28:30 +0800
Subject: [PATCH] 优化UI组件;

---
 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