Back to Devexpress

RibbonControl.ItemRightClick Event

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-89b1ad75.md

latest2.6 KB
Original Source

RibbonControl.ItemRightClick Event

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

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Action")]
public event ItemClickEventHandler ItemRightClick
vb
<DXCategory("Action")>
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 Ribbon items. To handle right-clicks on an individual Ribbon item, 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 RibbonControl.ShowCustomizationMenu event.

Note

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

See Also

ItemClick

ShowCustomizationMenu

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace