Hi,
Is it possible to edit the menu "Customize Quick Acces Toolbar" (don't know how it is called) in the QAT?!
(This is the menu that drops down when you click the little button with the arrow from the QAT)
Kind regards,
Arjan
Like the intrinsic TextBox element, the xamRibbon dynamically creates a ContextMenu for its Tools if they do not have a ContextMenu set. It does this in the ContextMenuOpening (as the textbox does). So if you want a custom menu for a tool you would need to set its ContextMenu property to a ContextMenu instance. Note it is not possible for a control to raise the ContextMenuOpening - this is done by the WPF framework and the ctor for ContextMenuEventArgs is internal to the WPF framework. You may want to submit a feature request to raise a custom event to allow initialization of the ContextMenu we create/show for the tool.
What about the tools' context menus? It looks like the tools fail to raise ContextMenuOpening.
The QuickAccessToolbar class raises an event named QuickCustomizeMenuOpening that you can handle and add/remove items.