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

Empty context menu on controls and ribbon #573

Closed
the-madcat opened this issue May 25, 2018 · 4 comments
Closed

Empty context menu on controls and ribbon #573

the-madcat opened this issue May 25, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@the-madcat
Copy link

In one project I disabled every option that would have a context menu entry for any control on the ribbon or the ribbon itself. It turned out that this results in an empty context menu:
image

I could build a workaround by adding a context menu that is collapsed to every control by style and a ContextMenuOpening event handler that closes the ribbons context menu immediately (because somehow the added context menu does not solve the problem on the ribbon itself ...).

Did I miss any option to disable the context menu?


Environment

  • Fluent.Ribbon v6.1.0.233
  • Windows 8.1
  • .NET Framework 4.5
@batzen
Copy link
Member

batzen commented May 26, 2018

You did not miss an option.
I just never thought about that path. ;-)

@batzen batzen added this to the 7.0.0 milestone May 26, 2018
@batzen batzen self-assigned this May 26, 2018
@the-madcat
Copy link
Author

A very valid explanation ;)

And I found out why my collapsed context menu did not work for the tabitems ... I simply misspelled the static ressource key and I have no idea why the IDE did not mark it ... we never talk about that again :P

@batzen
Copy link
Member

batzen commented May 28, 2018

And i will add code that simply closes the context menu immediately if it's empty.

@the-madcat
Copy link
Author

Thank you.

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

No branches or pull requests

2 participants