diff --git a/src/Ursa/Controls/TitleBar/TitleBar.cs b/src/Ursa/Controls/TitleBar/TitleBar.cs index a4319b9..edcdc8b 100644 --- a/src/Ursa/Controls/TitleBar/TitleBar.cs +++ b/src/Ursa/Controls/TitleBar/TitleBar.cs @@ -49,6 +49,11 @@ public class TitleBar: ContentControl private void OnPointerPressed(object sender, PointerPressedEventArgs e) { + if(_visualRoot is not null + && _visualRoot.WindowState == WindowState.FullScreen) + { + return; + } if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) { if (e.ClickCount < 2) @@ -62,7 +67,8 @@ public class TitleBar: ContentControl { if (_visualRoot is not null) { - if (_visualRoot.WindowState == WindowState.Maximized) + if (_visualRoot.WindowState == WindowState.Maximized + || _visualRoot.WindowState == WindowState.FullScreen) { _visualRoot.WindowState = WindowState.Normal; }