From c25ac53f9b9da2bbcb9963caa76a3bd884dad851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8A=BC?= Date: Fri, 12 Jul 2024 18:55:13 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E5=88=87=E6=8D=A2=20=E4=BB=8E=E9=80=80=E5=87=BA=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E6=97=B6=E8=82=AF=E5=AE=9A=E5=8F=98=E4=B8=BANormal?= =?UTF-8?q?=E6=94=B9=E6=88=90=E5=8F=98=E4=B8=BA=E8=BF=9B=E5=85=A5=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=E5=89=8D=E7=9A=84=E7=8A=B6=E6=80=81(=E5=8D=B3=20?= =?UTF-8?q?=E4=B9=9F=E5=8F=AF=E8=83=BD=E8=BF=9B=E5=85=A5Maximized=E7=8A=B6?= =?UTF-8?q?=E6=80=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Ursa/Controls/TitleBar/CaptionButtons.cs | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Ursa/Controls/TitleBar/CaptionButtons.cs b/src/Ursa/Controls/TitleBar/CaptionButtons.cs index 2ff0aeb..6b0ac86 100644 --- a/src/Ursa/Controls/TitleBar/CaptionButtons.cs +++ b/src/Ursa/Controls/TitleBar/CaptionButtons.cs @@ -25,7 +25,11 @@ public class CaptionButtons: Avalonia.Controls.Chrome.CaptionButtons private Button? _fullScreenButton; private IDisposable? _visibilityDisposable; - + + /// + /// 切换进入全屏前 窗口的状态 + /// + private WindowState? _oldWindowState; protected override void OnApplyTemplate(TemplateAppliedEventArgs e) { _closeButton = e.NameScope.Get