ToggleButton.IsThreeState 屬性

定義

決定控制項支援兩種或三種狀態。

public:
 property bool IsThreeState { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsThreeState { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsThreeState : bool with get, set
Public Property IsThreeState As Boolean

屬性值

Boolean

如果控制項支援三種狀態則為 true,否則為 false。 預設為 false

屬性

備註

當 為 時 IsThreeState trueIsChecked 屬性可以設定 null 為第三個狀態。

相依性屬性資訊

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

適用於