Back to Devexpress

BarItem.ItemRightClick Event

windowsforms-devexpress-dot-xtrabars-dot-baritem-596c6be6.md

latest2.7 KB
Original Source

BarItem.ItemRightClick Event

Occurs when a user right-clicks the BarItem.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event ItemClickEventHandler ItemRightClick
vb
Public Event ItemRightClick As ItemClickEventHandler

Event Data

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

PropertyDescription
ItemGets the BarItem whose link was clicked.
LinkGets the clicked BarItemLink.
MouseButtonGets 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

AllowRightClickInMenu

BarManager.ItemClick

BarManager.ItemRightClick

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace