Skip to main content

BaseContentContainer.GetRoot(IContentContainer) Method

Gets the root parent for the specific Content Container.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public static IContentContainer GetRoot(
    IContentContainer container


Name Type Description
container DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer

An IContentContainer whose root parent is to be obtained.


Type Description

An IContentContainer object that is the target Content Container‘s root parent.


You can get a parent for each Content Container via the BaseContentContainer.Parent property. If your application hierarchy is more complex than two-level Parent-Child relations and a child Content Container is itself a parent for other containers, use the GetRoot method to obtain the root parent for a container. The GetRoot method for top-most containers (whose BaseContentContainer.Parent property is null) returns these specific containers.

See Also