ToggleButton.IsThreeState Property


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

 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



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


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.


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