Add support to hide Minimize / Maximize window buttons

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:17
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jp2masacommented, Sep 10, 2020

Hiding the window icon is related to #4474.

0reactions
TomEdwardsEnscapecommented, Aug 18, 2022

+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++

Read more comments on GitHub >

github_iconTop Results From Across the Web

wpf - How to remove minimize and maximize buttons from ...
It hides the maximize and minimize buttons, but the window can still be resized by dragging the window borders and minimize using the...
Read more >
How to hide the maximize button
You can't hide the maximize button while the minimize button is still visible. You can easily disable it by using certain GUI styles....
Read more >
CSS Snippet for hiding the maximize, minimize and close ...
CSS Snippet for hiding the maximize, minimize and close window buttons. I personally use the keyboard for all of those actions, and I...
Read more >
Remove the minimize, maximize, and close buttons
I'm running Ubuntu 20.10 with GNOME Shell extension Unite which can add the minimize, maximize and close buttons to the top bar and...
Read more >
Hide the Maximize and Minimize buttons - Telerik UI for WPF
The easiest way to hide the minimize or maximize buttons is to set the HideMinimizeButton and HideMaximizeButton properties respectively.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found