This documentation is archived and is not being maintained.

PageContent.GetPageRoot Method

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

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.