StandaloneGallery.ContextButtonCustomize Event

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

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Context Buttons")]
public event GalleryContextButtonCustomizeEventHandler ContextButtonCustomize
<DXCategory("Context Buttons")>
Public Event ContextButtonCustomize As GalleryContextButtonCustomizeEventHandler

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