Skip to content
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

Minimize button in system menu still appear #3473

Closed
LuanPham97 opened this issue Mar 12, 2019 · 2 comments
Closed

Minimize button in system menu still appear #3473

LuanPham97 opened this issue Mar 12, 2019 · 2 comments
Labels
Milestone

Comments

@LuanPham97
Copy link

LuanPham97 commented Mar 12, 2019

Describe the bug
I want to hide minimize button so I use property ShowMinButton="False" to hide, minimize button on MainWindow is hidden but when I Right-click on titlebar, System Menu show up and Minimize Button stilll appear

Expected behavior
Minimize button in System menu is hidden (or disabled)

Screenshots
image

Environment:

  • MahApps.Metro version 1.6.5
@punker76 punker76 added the Bug label Mar 15, 2019
@punker76 punker76 added this to the 2.0.0 milestone Mar 15, 2019
punker76 added a commit that referenced this issue May 14, 2019
The user can hide the minimize and maxiimize/restore button with the respective dependency properties. But when the user hides the buttons then the system menu items are still enabled.

The fix for this itself can be find at the ControlzEx repository ControlzEx/ControlzEx@cde72f8

The commit adds 2 new dependency properties

- EnableMinimize: Gets or sets whether if the minimize button is visible and the minimize system menu is enabled.
- EnableMaxRestore: Gets or sets whether if the maximize/restore button is visible and the maximize/restore system menu is enabled.
@punker76
Copy link
Member

@LuanPham97 this has now been fixed, and it will be released in the next version of MahApps.Metro v2.0

@LuanPham97
Copy link
Author

@LuanPham97 this has now been fixed, and it will be released in the next version of MahApps.Metro v2.0

Okay that’s great. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants