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

BarEditItem.ShowingEditor Event

Occurs before activating an editor.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event ItemCancelEventHandler ShowingEditor

#Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the editor within an item is read only.
Item Gets the BarItem whose link was clicked. Inherited from ItemClickEventArgs.
Link Gets the clicked BarItemLink. Inherited from ItemClickEventArgs.

#Example

The following code demonstrates the use of the ShowingEditor event handler which prevents an editor from being activated:

using DevExpress.XtraBars;

private void eItem1_ShowingEditor(object sender, ItemCancelEventArgs e) {
    e.Cancel = true;
}
See Also