VisualElement.IsEnabled 屬性

定義

取得或設定值,這個值指出使用者介面中是否已啟用此項目。 這是可繫結屬性。

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

屬性值

如果啟用這個項目,則為 true;否則為 false。 預設值為 true

備註

預設值是 true

未啟用的專案將不會收到焦點或回應輸入事件。

適用於