I have a VSTO add-in that uses a custom ribbon, but it appears the only event on the ribbon buttons is a Click Event. I was hoping there would be some way I could capture a right-click, which I would normally do using the MouseDown
event, but no such option exists.
I also checked the RibbonControlEventArgs,
and it does not have anything to indicate whether the click was a left or a right.
Is there an alternate control I can use or another way to handle a right-click, or are there any light-weight third party controls that would help?
I noticed that in Excel, for example, the native controls don't appear to handle a right-click, so I may be out of luck. Right-clicking the ribbon appears to invoke an action on the ribbon itself, not on the control that has focus.
For what it's worth, my goal is this: The ribbon has recently become crowded, so I have moved many buttons into a ribbon menu. This works nicely. What I'd like to do now is give the user an option to "elevate" selected buttons from the menu to the ribbon group -- for frequently used items.
I regret to tell you but the Fluent UI (aka Ribbon UI) doesn't provide anything for that. You can read more about the UI in the following series of articles in MSDN: