The RibbonGallery Menu Items Collection Editor allows you to add any number of menu items to the bottom of the drop-down portion of the gallery or remove menu items from the bottom of the drop-down portion of the gallery. Additionally, you can edit the item's properties.
To edit the Ribbon gallery menu item(s), use the RibbonGallery Menu Items Collection Editor:
Clicking the Add drop-down button will reveal a drop-down list with the following Ribbon items available to add to the drop-down portion of the gallery:
- RibbonButton
- RibbonColorPicker
- RibbonColorPickerItem
- RibbonComboBox
- RibbonLabel
- RibbonMenu
- RibbonSeparator
- RibbonSplitButton
- RibbonToggleButton
Accessing the RibbonGallery Menu Items Collection Editor
You can use one of the following two options to access the RibbonGallery Menu Items Collection Editor:
Option 1
- Add a RibbonGallery to the Ribbon group.
- Click the gallery element to activate it.
- In the Properties window, click on the ellipsis button next to the MenuItems property.
The RibbonGallery Menu Items Collection Editor appears.
Option 2
- Access the RibbonGroup Items Collection Editor.
- Click the Add drop-down button and add a gallery item.
- With the RibbonGallery selected in the Members list, click on the ellipsis button next to the MenuItems property in the Properties window.
The RibbonGallery Menu Items Collection Editor appears.