Skip to main content
All docs
V25.1
Bar

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 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

BarItem.ItemRightClick Event

Occurs when a user right-clicks the BarItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v25.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event ItemClickEventHandler ItemRightClick

#Event Data

The ItemRightClick event's data class is ItemClickEventArgs. The following properties provide information specific to this event:

Property Description
Item Gets the BarItem whose link was clicked.
Link Gets the clicked BarItemLink.
MouseButton Gets the pressed mouse button.

#Remarks

Handle the ItemRightClick event to respond to right-clicks on an individual BarItem. Handle the following events to respond to right-clicks on any bar item displayed in a RibbonControl or toolbar:

The ItemRightClick event does not cancel the default action (a context menu appears). To hide or customize the context menu displayed on right-click, handle the BarManager.ShowToolbarsContextMenu event.

Note

The ItemRightClick event is not raised for disabled items (items with the Enabled property set to false).

See Also