全屏状态下 双击不应该退出全屏
This commit is contained in:
@@ -67,8 +67,12 @@ public class TitleBar: ContentControl
|
||||
{
|
||||
if (_visualRoot is not null)
|
||||
{
|
||||
if (_visualRoot.WindowState == WindowState.Maximized
|
||||
|| _visualRoot.WindowState == WindowState.FullScreen)
|
||||
if ( _visualRoot.WindowState == WindowState.FullScreen)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_visualRoot.WindowState == WindowState.Maximized)
|
||||
{
|
||||
_visualRoot.WindowState = WindowState.Normal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user