Skip to main content
A newer version of this page is available. .

BarManager.CreateStandardLayout Property

Gets or sets whether the bar manager implicitly creates four BarContainerControls at the four edges of the BarManager control, allowing you to dock Bars at these positions. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

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


public bool CreateStandardLayout { get; set; }

Property Value

Type Description

true, if the bar manager implicitly creates four BarContainerControls; otherwise, false.


By default, the CreateStandardLayout option is set to true. In this mode, four default bar containers (BarContainerControls) are implicitly created along the edges of the BarManager. These containers have the BarContainerControl.ContainerType property set to BarContainerType.Top, BarContainerType.Bottom, BarContainerType.Left and BarContainerType.Right respectively.

You can define a Bar object in the BarManager.Bars collection, and dock this bar to any of these default containers by setting the Bar.DockInfo.ContainerType (BarDockInfo.ContainerType) property to Top, Bottom, Left or Right.

Besides the default containers, you can manually add any number of BarContainerControls to the window. A Bar object, defined in the BarManager.Bars collection, can be docked to these containers using the Bar.DockInfo.Container (BarDockInfo.Container) or Bar.DockInfo.ContainerName (BarDockInfo.ContainerName) properties.

See the BarContainerControl topic to learn more.


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