Share via


PageContent.GetPageRoot(Boolean) 方法

定义

加载并返回 FixedPage 内容元素。

public:
 System::Windows::Documents::FixedPage ^ GetPageRoot(bool forceReload);
public System.Windows.Documents.FixedPage GetPageRoot (bool forceReload);
member this.GetPageRoot : bool -> System.Windows.Documents.FixedPage
Public Function GetPageRoot (forceReload As Boolean) As FixedPage

参数

forceReload
Boolean

如果为 true,则始终重新加载 FixedPage,即使先前已对其进行加载和缓存;如果为 false,则仅在没有缓存版本的情况下才加载 FixedPage

返回

此页的可视化树的根元素。

注解

GetPageRoot 对 执行同步加载和分析 FixedPage

注意

GetPageRootAsync使用 而不是 GetPageRoot 来避免加载时FixedPage线程阻塞。

适用于