From 3b877b5501c3c0e4ccb7e4cfd37ddae60f670e4f Mon Sep 17 00:00:00 2001
From: chenghaoran <chenghaoran@ipilotwhale.com>
Date: 星期三, 21 二月 2024 22:36:24 +0800
Subject: [PATCH] 完善基础组件;

---
 Controls/InnerWindow.xaml.cs |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/Controls/InnerWindow.xaml.cs b/Controls/InnerWindow.xaml.cs
index db9ee1c..bdd3b49 100644
--- a/Controls/InnerWindow.xaml.cs
+++ b/Controls/InnerWindow.xaml.cs
@@ -4,10 +4,15 @@
 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
 {
@@ -36,13 +41,15 @@
 
         public DragType DragType { get; set; } = DragType.Canvas;
 
-        private int _Zindex;
-
         public int Zindex
         {
-            get { return _Zindex; }
-            set => RaiseAndSetIfChanged(ref _Zindex, value);
+            set
+            {
+                Canvas.SetZIndex(this, value);
+            } 
         }
+
+        public AdornerDecorator ResizeAdornerDecorator { get => VisualTreeHelper.GetChild(this, 0) as AdornerDecorator; }
 
 
         public event EventHandler MinEvent;
@@ -103,6 +110,19 @@
         private void InnerWindow_SizeChanged(object sender, SizeChangedEventArgs e)
         {
             //throw new NotImplementedException();
+        }
+
+        private void InitThumb()
+        {
+            
+        }
+
+        // 鏂瑰舰宸ュ巶      
+        FrameworkElementFactory GetFactory(Brush back)
+        {
+            FrameworkElementFactory fac = new FrameworkElementFactory(typeof(Rectangle));
+            fac.SetValue(Rectangle.FillProperty, back);
+            return fac;
         }
 
         private void InnerWindow_Loaded(object sender, RoutedEventArgs e)
@@ -187,7 +207,7 @@
         {
             if (true)
             {
-                Resize.SetIsResizeable(this, true);
+               Resize.SetIsResizeable(this, true);
             }
             canvas.Children.Add(this);
             this.canvas = canvas;

--
Gitblit v1.9.1