Back to Devexpress

RibbonControl.ItemPress Event

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-910fa84c.md

latest2.0 KB
Original Source

RibbonControl.ItemPress Event

Fires after a links has been pressed.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Action")]
public event ItemClickEventHandler ItemPress
vb
<DXCategory("Action")>
Public Event ItemPress As ItemClickEventHandler

Event Data

The ItemPress 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

The ItemPress event fires before the RibbonControl.ItemClick event since the latter is invoked after the mouse button has been released.

To respond to pressing the links that are associated with an individual item, handle this item’s BarItem.ItemPress event.

See Also

ItemClick

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace