语言

PageContent.Child 属性

定义

获取或设置 FixedPage 与此 PageContent关联的项。

public:
 property System::Windows::Documents::FixedPage ^ Child { System::Windows::Documents::FixedPage ^ get(); };
public:
 property System::Windows::Documents::FixedPage ^ Child { System::Windows::Documents::FixedPage ^ get(); void set(System::Windows::Documents::FixedPage ^ value); };
public System.Windows.Documents.FixedPage Child { get; }
public System.Windows.Documents.FixedPage Child { get; set; }
member this.Child : System.Windows.Documents.FixedPage
member this.Child : System.Windows.Documents.FixedPage with get, set
Public ReadOnly Property Child As FixedPage
Public Property Child As FixedPage

属性值

此属性FixedPage设置PageContent时与此关联FixedPage,或Source。

注解

该 Child 属性返回以下 FixedPage 情况:

  • PageContent 具有 XAML 标记中定义的直接 FixedPage 子级。
  • 已调用该函数将设置为 <a0/> 的子级。

当属性设置Child属性(由属性指定时,FixedPage不缓存该属性)时Source,该Source属性将返回 FixedPage。 使用 GetPageRoot 或 GetPageRootAsync 返回 FixedPage 属性设置 Source 时。

XAML 文本用法

不能在 XAML 中使用此属性。

适用于

另请参阅