Skip to main content
Bar

Gallery.ItemClick Event

Fires when a gallery item is clicked.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public event GalleryItemEventHandler ItemClick

Event Data

The ItemClick event's data class is DevExpress.Xpf.Bars.GalleryItemEventArgs.

Remarks

The ItemClick event fires when clicking any item within the gallery. To respond to clicking a particular item, you can handle the GalleryItem.Click event.

If you need to get the item’s check state while handling the ItemClick event, use the GalleryItem.IsChecked property. Item checking/unchecking can be enabled via the Gallery.ItemCheckMode property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemClick event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also