PageContent::GetPageRootAsync Method (Boolean)
Asynchronously loads and returns the FixedPage content element.
Assembly: PresentationFramework (in PresentationFramework.dll)
GetPageRootAsync asynchronously 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:
Create a GetPageRootCompletedEventHandler delegate and add it to be notified of GetPageRootCompleted events.
Call GetPageRootAsync.
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.
Available since 3.0