ToggleButton.IsThreeState 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示控制項是否支援三種狀態。
public:
property bool IsThreeState { bool get(); void set(bool value); };
bool IsThreeState();
void IsThreeState(bool value);
public bool IsThreeState { get; set; }
var boolean = toggleButton.isThreeState;
toggleButton.isThreeState = boolean;
Public Property IsThreeState As Boolean
<togglebutton IsThreeState="bool"/>
屬性值
Boolean
bool
若控制項支援三種狀態,則為真;否則,則為錯誤。 預設值為 false。
備註
ToggleButton 並可有三種狀態:
| State | 房產 | 價值 |
|---|---|---|
| 已確認 | 已檢查 | 沒錯 |
| 未勾選 | 已檢查 | 錯誤 |
| 不確定 | 已檢查 | 零 |
為了讓 ToggleButton 回報不確定狀態,你必須將 IsThreeState 屬性設 為 true。
Note
ToggleButton 對於不確定和未勾選狀態,視覺狀態是相同的。 衍生控制項,如 CheckBox,可能為每個狀態定義不同的視覺狀態。