ItemsControl.HasItems Property

Definition

Obtiene un valor que indica si ItemsControl incorpora elementos.Gets a value that indicates whether the ItemsControl contains items.

public:
 property bool HasItems { bool get(); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public bool HasItems { get; }
member this.HasItems : bool
Public ReadOnly Property HasItems As Boolean

Property Value

Boolean

true si el recuento de elementos es mayor que 0; de lo contrario, false.true if the items count is greater than 0; otherwise, false. El valor predeterminado es false.The default is false.

Attributes

Remarks

Información sobre propiedades de dependenciaDependency Property Information

Campo de identificadorIdentifier field HasItemsProperty
Propiedades de metadatos establecidas en trueMetadata properties set to true NoneNone

Applies to