alielie
2025-04-10 6bcafc823e836ecd5790f87178a906333699f868
Plugin.TestBuilder/UI/InnerWindow.xaml.cs
File was renamed from WPFProject/Controls/InnerWindow.xaml.cs
@@ -1,20 +1,14 @@
using HandyControl.Controls;
using 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;