Bar

BarEditItem.ShowingEditor Event

Occurs before activating an editor.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public event ItemCancelEventHandler ShowingEditor
Public Event ShowingEditor As ItemCancelEventHandler

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.

Examples

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