Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StandaloneGallery.ContextButtonCustomize Event

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

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.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.

See Also