Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseContentContainer.GetRoot(IContentContainer) Method

Gets the root parent for the specific Content Container.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public static IContentContainer GetRoot(
    IContentContainer container
)

#Parameters

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

An IContentContainer whose root parent is to be obtained.

#Returns

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

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

#Remarks

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