wpf-6556-controls-and-libraries-ribbon-bars-and-menu-bars-bar-layout-bar-containers.md
A bar container (BarContainerControl) is a control that can display bars (ToolBarControl, MainMenuControl, StatusBarControl and Bar). You can use bar containers to accomplish several tasks.
When using the BarManager component, four bar containers are implicitly added at the top, left, right and bottom edges of the BarManager (provided that the BarManager.CreateStandardLayout property is set to true ; this is the default value). You can display a Bar object at any of these edges by associating the bar with a corresponding bar container using the Bar.DockInfo property. A bar container is invisible, unless a bar is docked to the container.
To create a floating bar in XAML, define a Bar object in the BarManager.Bars collection and set its Bar.DockInfo.ContainerType (BarDockInfo.ContainerType) property to BarContainerType.Floating.