Skip to main content

RibbonGalleryBarItem Class

A bar item that represents an In-Ribbon gallery.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation


public class RibbonGalleryBarItem :

The following members return RibbonGalleryBarItem objects:


The RibbonGalleryBarItem object implements an In-Ribbon gallery for a RibbonControl.


To display an In-Ribbon gallery, do the following:

  1. Create a RibbonGalleryBarItem object at design time via the Ribbon Control Designer’s Gallery Page or in code using the class’s constructor.

    When creating a bar item in code, initialize the item’s BarItem.Manager property with the value of the RibbonControl.Manager property. Otherwise, the item may not be properly displayed.

  2. Add the created bar item to a specific Ribbon page group (a RibbonPageGroup object).
  3. Customize the In-Ribbon gallery via the RibbonGalleryBarItem.Gallery property. This property represents an InRibbonGallery class instance. Use the RibbonGalleryBarItem.Gallery property to add gallery groups, gallery items to groups, etc.
  4. Optionally you can implement an extended version of the created In-Ribbon gallery that will be displayed as a popup window when the Dropdown button is clicked (see the image above). To do this, create and customize a GalleryDropDown control, which will represent the gallery’s extended version, and then assign it to the RibbonGalleryBarItem.GalleryDropDown property.

See Galleries for more information.

See Also