Back to Devexpress

BarItem.ItemPress Event

windowsforms-devexpress-dot-xtrabars-dot-baritem-91a237ff.md

latest2.2 KB
Original Source

BarItem.ItemPress Event

Fires immediately after a link associated with an item has been pressed.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event ItemClickEventHandler ItemPress
vb
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 end-users press a link associated with the current bar item. This event fires before the BarItem.ItemClick event, since the latter fires when the mouse button is released.

You may also use the BarManager’s BarManager.ItemPress event. This event fires when any of the links, associated with the manager, has been pressed.

See Also

ItemClick

PressedLinkChanged

PressedLink

BarItem Class

BarItem Members

DevExpress.XtraBars Namespace