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

Disable context menu on Ribbon #592

Closed
balkarov opened this issue Jul 26, 2018 · 11 comments
Closed

Disable context menu on Ribbon #592

balkarov opened this issue Jul 26, 2018 · 11 comments
Assignees
Milestone

Comments

@balkarov
Copy link

Hello. Thank you for your library.
How to disable main context menu on Ribbon?
111

I tried this:

<fluent:Ribbon xmlns:fluent="urn:fluent-ribbon"
                       ContextMenu="{x:Null}">

Sorry, I did not find solution.


Environment

  • Fluent.Ribbon 6.1.0.233
  • Windows 10
  • .NET Framework 4.6.2
@batzen batzen added the Question ❓ Not an issue but a question instead. label Jul 26, 2018
@batzen
Copy link
Member

batzen commented Jul 26, 2018

There are various switches which control which items are visible in the ContextMenu.
To get rid of these two options you have to set CanQuickAccessLocationChanging and CanMinimize to false.
To get rid of all context menu options you also have to set CanCustomizeQuickAccessToolBar, CanCustomizeQuickAccessToolBarItems and CanCustomizeRibbon to false.
I hope i didn't forget any option.

@balkarov
Copy link
Author

If I set CanMinimize = false, then I lost button for minimize.
But I want leave minimize button and hide context menu

@batzen
Copy link
Member

batzen commented Jul 26, 2018

I will add a new property to fully disable the context menu as you are not the first one requesting such a feature.

@batzen batzen added Feature 🥇 and removed Question ❓ Not an issue but a question instead. labels Jul 26, 2018
@batzen batzen added this to the 7.0.0 milestone Jul 26, 2018
@batzen batzen self-assigned this Jul 26, 2018
@balkarov
Copy link
Author

Thank you very much!
I will wait.

@balkarov
Copy link
Author

balkarov commented Jul 26, 2018

Yes, disable context menu will be better. Because when I tried your solution I have some dot in Ribbon after right click 😄
2018-07-26 21 21 51

@batzen
Copy link
Member

batzen commented Jul 26, 2018

That's an issue i fixed in version 7.0. ;-)

But i will add an option to disable the context menu completely.

@batzen batzen closed this as completed in 5b4126b Aug 5, 2018
@balkarov
Copy link
Author

balkarov commented Aug 6, 2018

Why you closed? Did you add this feature?

@batzen
Copy link
Member

batzen commented Aug 6, 2018

Yes, i did.

@balkarov
Copy link
Author

balkarov commented Aug 6, 2018

What is the naming?

@batzen
Copy link
Member

batzen commented Aug 6, 2018

Have a look at 5b4126b

@balkarov
Copy link
Author

balkarov commented Aug 6, 2018

Thank you very much! 👍

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