diff --git a/src/Ursa/Controls/TitleBar/TitleBar.cs b/src/Ursa/Controls/TitleBar/TitleBar.cs index a4319b9..36dcaea 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,6 +67,11 @@ public class TitleBar: ContentControl { if (_visualRoot is not null) { + if ( _visualRoot.WindowState == WindowState.FullScreen) + { + return; + } + if (_visualRoot.WindowState == WindowState.Maximized) { _visualRoot.WindowState = WindowState.Normal;