全屏状态下 双击不应该退出全屏

This commit is contained in:
杨劼
2024-07-21 15:04:15 +08:00
parent cd224be8ac
commit 4b30d3994f

View File

@@ -67,8 +67,12 @@ public class TitleBar: ContentControl
{ {
if (_visualRoot is not null) if (_visualRoot is not null)
{ {
if (_visualRoot.WindowState == WindowState.Maximized if ( _visualRoot.WindowState == WindowState.FullScreen)
|| _visualRoot.WindowState == WindowState.FullScreen) {
return;
}
if (_visualRoot.WindowState == WindowState.Maximized)
{ {
_visualRoot.WindowState = WindowState.Normal; _visualRoot.WindowState = WindowState.Normal;
} }