PageContent.GetPageRoot Method (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Loads and returns the FixedPage content element.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public FixedPage GetPageRoot(
	bool forceReload


Type: System.Boolean

true to always reload the FixedPage even if it has been previously loaded and cached; false to load the FixedPage only if there is no cached version.

Return Value

Type: System.Windows.Documents.FixedPage

The root element of the visual tree for this page.

GetPageRoot performs synchronous loading and parsing of the FixedPage.


Use the GetPageRootAsyncinstead of GetPageRoot to avoid thread blocking while the FixedPage loads.

.NET Framework
Available since 3.0
Return to top