windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-38db4f56.md
Fires when a standard item of a gallery’s Group Filter menu is clicked.
Namespace : DevExpress.XtraBars.Ribbon.Gallery
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Action")]
public event GalleryFilterMenuItemClickEventHandler FilterMenuItemClick
<DXCategory("Action")>
Public Event FilterMenuItemClick As GalleryFilterMenuItemClickEventHandler
The FilterMenuItemClick event's data class is GalleryFilterMenuClickEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| FilterMenu | Gets the displayed menu. |
| Gallery | Gets the current gallery. |
| Item | Gets the item that has been checked. |
The FilterMenuItemClick event is raised in response to a click on a standard item (bar item link) in a Group Filter menu. The group filtering feature is supported by galleries derived from the StandaloneGallery class. See the StandaloneGallery.AllowFilter topic, to learn about this feature.
The event’s parameters enable you to identify the context menu, the clicked link and bar item it corresponds to. Handle this event, to provide specific actions associated with the menu item.
The BaseGallery.FilterMenuPopup event can be handled to add custom items to the menu. Clicking these items doesn’t fire the FilterMenuItemClick event. To respond to clicking a custom item, handle the item’s BarItem.ItemClick event.
See Also