Disabling context menu on ribbon button

Ribbon for WPF Forum

Posted 8 years ago by David Sherwood
Version: 12.2.0573
Avatar

All ribbon buttons inherit their context menu from the ribbon. Is there a way to stop this?

I have a ribbon button in the popup content of a popup button on a ribbon. When I right click the button, I get the option to minimize the ribbon. This makes no since when I'm using the ribbon. I tried 

ContextMenu="{x:Null}"

 but this did no good.

Is there a way to override the button's context menu?

Comments (3)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi David,

Please take a look at the "Customizing Context Menus" topic in the "Controls" section of the Ribbon documentation.  That tells you how you can customize context menus.


Actipro Software Support

Posted 8 years ago by David Sherwood
Avatar

I don't what to custimize it. I want to turn it off. Allowing ribbion minimize in in the content of a popup makes no sense. The ribbon minimizie command should only apper in the ribbon tabs. Not on every button.

[Modified 8 years ago]

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi David,

Sorry but that's the only way you can hide it, by doing the customization.


Actipro Software Support

The latest build of this product (v21.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.