windowsforms-devexpress-dot-xtrabars-dot-baredititem-4626671c.md
Occurs after an editor has been activated.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public event ItemClickEventHandler ShownEditor
Public Event ShownEditor As ItemClickEventHandler
The ShownEditor 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. |
| MouseButton | Gets the pressed mouse button. |
Use the e.Item.Manager.ActiveEditor property to get the editor.
using DevExpress.XtraBars;
private void barEditItem1_ShownEditor(object sender, ItemClickEventArgs e) {
BarEditItem item = (BarEditItem)sender;
TextEdit edit = item.Manager.ActiveEditor as TextEdit;
//…
}
Imports DevExpress.XtraBars
Private Sub barEditItem1_ShownEditor(ByVal sender As Object, ByVal e As ItemClickEventArgs)
Dim item As BarEditItem = DirectCast(sender, BarEditItem)
Dim edit As TextEdit = TryCast(item.Manager.ActiveEditor, TextEdit)
'…
End Sub
See Also