Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PageContent.GetPageRootAsync Method

Asynchronously loads and returns the FixedPage content element.

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

public void GetPageRootAsync (
	bool forceReload
)
public void GetPageRootAsync (
	boolean forceReload
)
public function GetPageRootAsync (
	forceReload : boolean
)
You cannot use methods in XAML.

Parameters

forceReload

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.

GetPageRootAsync asynchonously loads and parses the FixedPage data stream associated with this PageContent. Other threads will continue to run while GetPageRootAsync completes.

The following steps illustrate how to load the FixedPage content asynchronously:

  1. Create a GetPageRootCompletedEventHandler delegate and add it to be notified of GetPageRootCompleted events.

  2. Call GetPageRootAsync.

  3. When the GetPageRootCompleted event occurs and the delegate is called, the FixedPage content has completed loading. The loaded FixedPage element is returned through the GetPageRootCompletedEventArgs.Result property.

For more information about the <PageContent> element, see chapter 3 of the XPS specification which you can obtain at XPS: Specification and License Downloads.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.