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

Option to disable the "Minimize"-Ribbon Button & Behavior #230

Closed
robertmuehsig opened this issue Dec 23, 2015 · 3 comments
Closed

Option to disable the "Minimize"-Ribbon Button & Behavior #230

robertmuehsig opened this issue Dec 23, 2015 · 3 comments
Milestone

Comments

@robertmuehsig
Copy link
Contributor

In our application we would like to disable/hide the "Minimize"-Button from the ribbon.

image

The ribbon should not be "minimized" at all, so currently we do this via the VisualTreeHelper and search for the "PART_MinimizeButton" and disable it.
To prevent the minimizing via Mouse-Double click we have a EventHandler and just set "IsMinimized=false". It is a bit dirty, but works.

Would you accept a PR with a property like "CanMinimizeRibbon="False", which disables the "default"-ribbon behavior?

@batzen
Copy link
Member

batzen commented Dec 23, 2015

I would.
Please name it "CanMinimize".
There are quite a few places that enable minimizing.
The ones I found so far:

  • MenuItem from ContextMenu
  • Keyboard shortcut (SHIFT + F1)
  • Button

You would have to modify Ribbon and RibbonTabControl and I guess you want to change the visibility of the MenuItem in the ContextMenu and the button itself based on the value of CanMinimize.

@robertmuehsig
Copy link
Contributor Author

New PR: #243

@batzen
Copy link
Member

batzen commented Jan 11, 2016

Merged PR.

@batzen batzen closed this as completed Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants