Share via


TreeViewNode.HasChildren Propriété

Définition

Obtient une valeur qui indique si le nœud actuel a des éléments enfants.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

public:
 property bool HasChildren { bool get(); };
bool HasChildren();
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
bool HasChildren();
public bool HasChildren { get; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public bool HasChildren { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; }
Public ReadOnly Property HasChildren As Boolean

Valeur de propriété

Boolean

bool

true si le nœud actuel a des éléments enfants ; sinon, false.

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

S’applique à