ItemsControl.HasItems 屬性

定義

取得表示 ItemsControl 是否包含項目的值。

C#
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public bool HasItems { get; }

屬性值

Boolean

true 如果專案計數大於 0,則為 ;否則為 false 。 預設為 false

屬性

備註

相依性屬性資訊

識別碼欄位 HasItemsProperty
中繼資料屬性設定為 true

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7