AttachedPropertyBrowsableForChildrenAttribute.IncludeDescendants 屬性

定義

取得或設定值,這個值會宣告是否要使用深層模式來偵測附加屬性上套用這個.NET Framework屬性的父元素。

public:
 property bool IncludeDescendants { bool get(); void set(bool value); };
public bool IncludeDescendants { get; set; }
member this.IncludeDescendants : bool with get, set
Public Property IncludeDescendants As Boolean

屬性值

Boolean

如果具附加屬性之父項目邏輯樹狀結構中的所有子項目皆可瀏覽附加的屬性,則為 true。 如果只有具附加屬性之父項目的直接子項目可瀏覽附加屬性,則為 false。 預設為 false

備註

大部分由 WPF 所定義的附加屬性都會套用 AttachedPropertyBrowsableForChildrenAttribute ,其預設值為 IncludeDescendants false

XAML 文字使用方式

此類型的成員通常不會用於 XAML。

適用於