StandaloneGallery.ContextButtonCustomize Event
Allows you to customize the context buttons for individual gallery items.
Namespace: DevExpress.XtraBars.Ribbon.Gallery
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
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.