From 6bcafc823e836ecd5790f87178a906333699f868 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 10 四月 2025 10:46:47 +0800
Subject: [PATCH] 优化插件结构;

---
 Plugin.TestBuilder/UI/InnerWindow.xaml.cs |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/WPFProject/Controls/InnerWindow.xaml.cs b/Plugin.TestBuilder/UI/InnerWindow.xaml.cs
similarity index 93%
rename from WPFProject/Controls/InnerWindow.xaml.cs
rename to Plugin.TestBuilder/UI/InnerWindow.xaml.cs
index b665787..5242c2b 100644
--- a/WPFProject/Controls/InnerWindow.xaml.cs
+++ b/Plugin.TestBuilder/UI/InnerWindow.xaml.cs
@@ -1,20 +1,14 @@
-锘縰sing HandyControl.Controls;
+锘縰sing Plugin.TestBuilder.Entity;
 using System;
 using System.ComponentModel;
 using System.Runtime.CompilerServices;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
 using System.Windows.Documents;
 using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Shapes;
-using WPFProject.Models;
-using WPFProject.UI.Test;
-using WPFProject.Utils;
-using static WPFProject.Utils.Resize.Resizeable;
 
-namespace WPFProject.Controls
+namespace Plugin.TestBuilder.UI
 {
     /// <summary>
     /// InnerWindow.xaml 鐨勪氦浜掗�昏緫
@@ -46,7 +40,13 @@
         public CanvasPosition canvasPosition;
         private Canvas canvas;
         public WindowState WindowState { get; set; } = WindowState.Normal;
-        public AdornerDecorator ResizeAdornerDecorator { get => VisualTreeHelper.GetChild(this, 0) as AdornerDecorator; }
+        public AdornerDecorator ResizeAdornerDecorator
+        {
+            get
+            {
+                return this.Template.FindName("PART_Adorner", this) as AdornerDecorator;
+            }
+        }
 
         private string _Title;
         public string Title
@@ -83,7 +83,7 @@
         }
 
         public static readonly DependencyProperty HeaderBackgroundProperty =
-            DependencyProperty.Register("HeaderBackground", typeof(Brush), typeof(ProgramList),
+            DependencyProperty.Register("HeaderBackground", typeof(Brush), typeof(InnerWindow),
                 new PropertyMetadata(new SolidColorBrush(Color.FromRgb(54, 146, 225))));
 
         public Brush HeaderFontColor
@@ -93,7 +93,7 @@
         }
 
         public static readonly DependencyProperty HeaderFontColorProperty =
-            DependencyProperty.Register("HeaderFontColor", typeof(Brush), typeof(ProgramList),
+            DependencyProperty.Register("HeaderFontColor", typeof(Brush), typeof(InnerWindow),
                 new PropertyMetadata(new SolidColorBrush(Color.FromRgb(255, 255, 225))));
         #endregion
 
@@ -190,7 +190,7 @@
         {
             if (true)
             {
-               Resize.SetIsResizeable(this, true);
+                Resize.SetIsResizeable(this, true);
             }
             canvas.Children.Add(this);
             this.canvas = canvas;

--
Gitblit v1.9.1