From e64d24005284e88daec445c7e79e6b93929d2463 Mon Sep 17 00:00:00 2001
From: chr <chrry550@163.com>
Date: 星期三, 28 二月 2024 15:35:32 +0800
Subject: [PATCH] 优化程序UI;

---
 Controls/InnerWindow.xaml.cs |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Controls/InnerWindow.xaml.cs b/Controls/InnerWindow.xaml.cs
index bdd3b49..6de3db6 100644
--- a/Controls/InnerWindow.xaml.cs
+++ b/Controls/InnerWindow.xaml.cs
@@ -1,5 +1,4 @@
-锘縰sing CommonModel;
-using System;
+锘縰sing System;
 using System.ComponentModel;
 using System.Runtime.CompilerServices;
 using System.Windows;
@@ -43,6 +42,9 @@
 
         public int Zindex
         {
+            get {
+                return Canvas.GetZIndex(this);
+            }
             set
             {
                 Canvas.SetZIndex(this, value);
@@ -245,8 +247,13 @@
 
         private void Grid_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
         {
-
-        }
+            this.Focus();
+        }
+
+        private void UserControl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+        {
+
+        }
     }
 
     public class InnerWindowProp : NotifyBase

--
Gitblit v1.9.1