Skip to main content

WidgetView.RootContainer Property

Returns the root docking container for this WidgetView.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public WidgetDockingContainer RootContainer { get; }

Property Value

Type Description

A DevExpress.XtraBars.Docking2010.Views.Widget.WidgetDockingContainer object that is the root docking container for this WidgetView.


When in Free Layout Mode, a Widget View places its documents inside vertically or horizontally oriented docking containers. Docking containers can host individual widgets or other containers. Each time an end-user re-arranges widgets at runtime (or the Document.DockTo method is called from code), a View automatically creates required containers and combines them in accordance to this new layout. At the same time, a View automatically destroys old docking containers that are not needed. The RootContainer property returns the root container, which is never destroyed.

See the Free Layout Mode article to learn more about docking containers and their settings.

See Also