Create custom RibbonControlCustomizationCategory

Ribbon for WPF Forum

Posted 6 months ago by Daniel Constantin - ModuleWorks GmbH
Version: 23.1.3
Avatar

Hi!

I would like to create a custom RibbonControlCustomizationCategory ("All Commands") and to put inside all the commands from my application, not only the ones from the Ribbon or Application Menu. I have buttons also on several menus which I want to have in this custom RibbonControlCustomizationCategory.

Kind regards,

Daniel

Comments (1)

Answer - Posted 6 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

You could probably make a class that inherits RibbonControlCustomizationCategory and pass the Ribbon instance into its constructor.  Override its GetControls method so that you do a foreach loop through all the categories returned by GetCategories(ribbon) and in the loop, add each of the category.GetControls method results into the collection.  That would effectively lump everything from the Ribbon into the single resulting collection.  Finally, add in any extra references into the collection for the menu items you mentioned.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.