Skip to main content

BarEditItemLink.Editor Property

Gets the editor associated with the current link.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core


public BaseEdit Editor { get; }

Property Value

Type Description

A BaseEdit descendant that represents the embedded editor.


Use the Editor property to access the editor displayed by the current link. It’s not possible to assign a new editor via the Editor property.

To specify an editor for a bar item link, use the BarEditItem.EditSettings property. Based on an object assigned to the BarEditItem.EditSettings property, an editor is created, and this can be accessed via the Editor property.


This example shows how to get and focus an editor embedded into a bar.In the example bars are added to BarContainers that are automatically created by setting the BarManager.CreateStandardLayout property to True.

View Example

<!--Set CreateStandardLayout to True  to create four BarContainers 
at the top, left, right, and bottom edges-->
<dxb:BarManager CreateStandardLayout="True" Margin="12" Name="barManager1">
        <dxb:BarButtonItem x:Name="btn" Content="button" ItemClick="btn_ItemClick" />
        <dxb:BarEditItem x:Name="beiEditor" EditValue="text">

        <dxb:Bar x:Name="topBar" Caption="Top Bar">
            <!--Display the bar within the top BarContainer-->
                <dxb:BarDockInfo ContainerType="Top" />
                <dxb:BarButtonItemLink BarItemName="btn" />
                <dxb:BarEditItemLink BarItemName="beiEditor" />
        <dxb:Bar x:Name="leftBar" Caption="Left Bar">
            <!--Display the bar within the left BarContainer-->
                <dxb:BarDockInfo ContainerType="Left" />
                <dxb:BarButtonItemLink BarItemName="btn" />                        

private void btn_ItemClick(object sender, DevExpress.Xpf.Bars.ItemClickEventArgs e) {
    (beiEditor.Links[0] as BarEditItemLink).Editor.Focus();
See Also