Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItem.ItemPress Event

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event ItemClickEventHandler ItemPress

#Event Data

The ItemPress event's data class is ItemClickEventArgs. The following properties provide information specific to this event:

Property Description
Item Gets the BarItem whose link was clicked.
Link Gets the clicked BarItemLink.

#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