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

BarManager.ItemPress Event

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
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 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