ItemsControl.HasItems 屬性

定義

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

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

屬性值

Boolean

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

屬性

備註

相依性屬性資訊

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

適用於