BarEditItem.ShowingEditor Event
In This Article
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 Bar |
Link |
Gets the clicked Bar |
#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