-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add support to hide Minimize / Maximize window buttons #3422
Comments
I'd add that for completeness, hiding the close button and the window icon (on the left at least in Windows) would be interesting. I don't know though if the last one makes sense for Linux and MacOS |
Hiding the window icon is related to #4474. |
Since there is Window.ShowDialog, this can be used as MessageBoxes in some cases, and the option for removing all 3 buttons or disabling them would be a nice. |
Any news? |
Any update on this one? |
I also am interested in this for a tool window. |
+1, disabling individual window title bar buttons (separately from tool window styling) would be wonderful. This is easy to implement in Windows with just a couple of P/Invoke calls, but on Mac you have to write and compile new Objective-C++ code. No idea about X11. Code for Windows: already exists in Avalonia, but in a private method. Code for OSX: this is how Qt handles the job in Objective-C++ |
Bump. It's been almost a year since the enhancement tag has been applied. I feel like this feature should get prioritized, considering it's one of the most basic features any UI framework should have. |
Hi @slxdy If you need priority on any issue please reach out to the team in case you have a support agreement. Otherwise you can request paid support, file a PR or wait until it's done. Because Avalonia is still OSS, it means things are done when they are done. Thanks for your understanding 🤗 Tip Some libs like FluentAvalonia have such controls available. |
CanResize has no effect on these buttons and won't hide them either. Window can still be maximized or minimized and there are certain windows where this is not wanted at all, such as dialogs. I would suggest adding a boolean property for each of it but something like WPF's
windowstyle="Toolwindow"
should do it as well.The text was updated successfully, but these errors were encountered: