Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to Create an in-Ribbon Gallery at Design Time

To quickly build a new gallery inside a Ribbon, first right-click the tab group header and select the “Add Group With Toolbar” menu item to add a new tab group with an empty toolbar to the Ribbon, as shown in the following image:

Then, perform the following steps:

  • To place a gallery in the toolbar, right-click the toolbar and select Add Item, and then the TdxRibbonGalleryItem in the context menu.

  • When a gallery group is selected, click the Add Item toolbar button in the designer window to create the gallery items that this group will contain. Provide each gallery item with a caption, description, and/or explanatory image.

  • Using a gallery’s OnGroupItemClick or a gallery item’s OnClick event, implement functionality common to all items or for each item individually.

Run the application to see the result.

See Also