-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mac] Cannot de-maximize a manually maximized form #1512
Comments
Thanks for submitting the issue! |
Hm, you're probably confusing "Full Screen" with maximized. The Maximize()/Unmaximize() is the same as "zooming" on Mac. On recent macOS versions you have to ALT+Click the green button to "Maximize" the window. There is no API mapping for to enter/exit full screen mode in Eto currently, but you can do it via |
ok, got it |
To determine if the window is maximized you can use Native code is usually implemented in your Mac-specific launcher app via a style or by creating your own form subclass. I've done a very rough partial implementation to support WindowState.FullScreen macOS in #1519, but it still needs a lot of work to add support for WinForms, Wpf, and Gtk as it isn't straightforward to do that with those platforms. I hope that helps point you in the right direction. |
If I manually maximize a form clicking on the green system buttom to maximize it, I'm no more able to programmatically de-maximize it.
I also noticed that if I programmatically maximize a form with the Maximize() method I don't really maximize it but rather change its dimensions to fit the available screen, it is an intended behaviour?
Anyway both maximized ways of maximizing a form have the WindowState to Maximized.
Expected Behavior
Setting WindowState = WindowState.Normal to a manually maximized form should de-maximize it
Actual Behavior
Setting WindowState = WindowState.Normal to a manually maximized form has no effect
Steps to Reproduce the Problem
The code this.WindowState = WindowState.Normal; get executed but the WindowState (and the form) remains Maximized
Code that Demonstrates the Problem
Specifications
The text was updated successfully, but these errors were encountered: