PageContent.GetPageRoot Method (Boolean)

 

Loads and returns the FixedPage content element.

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

public FixedPage GetPageRoot(
	bool forceReload
)

Parameters

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.

System_CAPS_noteNote

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

.NET Framework
Available since 3.0
Return to top
Show: