Back to Devexpress

BarManager.ItemRightClick Event

windowsforms-devexpress-dot-xtrabars-dot-barmanager-9ab89da7.md

latest2.8 KB
Original Source

BarManager.ItemRightClick Event

Occurs when a user right-clicks an item in the BarManager.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event ItemClickEventHandler ItemRightClick
vb
<DXCategory("Events")>
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 all BarManager items. To handle right-clicks on an individual BarItem, handle the BarItem.ItemRightClick event.

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 the following items:

  • Disabled items (items with the Enabled property set to false).
  • Items minimized into a popup menu when the form width is insufficient to display all items. To fire the ItemRightClick event for minimized bar items, set the BarManager.AllowShowToolbarsPopup property to false.

See Also

AllowRightClickInMenu

BarItem.ItemClick

BarItem.ItemRightClick

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace