Aracılığıyla paylaş


ToggleButton.IsThreeState Property

Definition

Gets or sets a value that indicates whether the control supports three states.

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"/>

Property Value

Boolean

bool

True if the control supports three states; otherwise, false. The default is false.

Remarks

ToggleButton and can have three states:

State Property Value
checked IsChecked true
unchecked IsChecked false
indeterminate IsChecked null

For the ToggleButton to report the indeterminate state, you must set the IsThreeState property to true.

Note

ToggleButton has the same visual state for the indeterminate and unchecked states. Derived controls, like CheckBox, may define different visual states for each state.

Applies to