Skip to main content
A newer version of this page is available. .

StandaloneGallery.ContextButtonCustomize Event

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

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

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

Event Data

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

Remarks

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