Skip to main content

StandaloneGallery.ContextButtonCustomize Event

Allows you to customize the context buttons for individual gallery items.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v23.1.dll

NuGet Package: DevExpress.Win.Navigation


[DXCategory("Context Buttons")]
public event GalleryContextButtonCustomizeEventHandler ContextButtonCustomize

Event Data

The ContextButtonCustomize event's data class is DevExpress.XtraBars.Ribbon.Gallery.GalleryContextButtonCustomizeEventArgs.


By default, the StandaloneGallery gallery displays the context buttons with the same properties in all images. The ContextButtonCustomize event fires for each context button in each gallery item before the StandaloneGallery is displayed and allows you to customize the context buttons. Read the GalleryContextButtonCustomizeEventArgs.GalleryItem property to determine the gallery item being processed. The GalleryContextButtonCustomizeEventArgs.Item property returns the context button to be customized.

See Also