Back to Devexpress

BarManager.ItemPress Event

windowsforms-devexpress-dot-xtrabars-dot-barmanager-82494e63.md

latest2.2 KB
Original Source

BarManager.ItemPress Event

Fires immediately after any of the links associated with the Bar Manager has been pressed.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event ItemClickEventHandler ItemPress
vb
<DXCategory("Events")>
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

Write an ItemPress event handler to perform specific actions each time any bar item link has been pressed. This event fires before the BarManager.ItemClick event, since the last is invoked after the mouse button has been released.

You can also use the BarItem.ItemPress event of individual items to respond to pressing links associated with them.

See Also

ItemPress

PressedLinkChanged

PressedLink

BarManager Class

BarManager Members

DevExpress.XtraBars Namespace