語言

XamlType.ContentProperty 屬性

定義

取得 XamlMember 此內容屬性 XamlType的資訊。

public:
 property System::Xaml::XamlMember ^ ContentProperty { System::Xaml::XamlMember ^ get(); };
public System.Xaml.XamlMember ContentProperty { get; }
member this.ContentProperty : System.Xaml.XamlMember
Public ReadOnly Property ContentProperty As XamlMember

屬性值

XamlMember 關於本內容屬性 XamlType的資訊。 如果沒有內容屬性存在,可能會有 null 。

備註

當使用 CLR 型別系統的綁定或支援時,可以透過套用 ContentPropertyAttribute 型別定義來指定 XAML 內容屬性。

此特性與 [content property] [MS-XAML] 規範中的資訊項目相符。

如果你不使用預設的內部 CLR 反射技術, XamlType呼叫此屬性可能會對衍生類別進行 LookupContentProperty 覆寫 XamlType 。 欲了解更多關於回傳值及其他行為的資訊,請參閱此類型的文件 LookupContentProperty 。

適用於