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
#Parameters
Name | Type | Description |
---|---|---|
container | DevExpress. |
An IContent |
#Returns
Type | Description |
---|---|
DevExpress. |
An IContent |
#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.