ToggleButton.IsThreeState ToggleButton.IsThreeState ToggleButton.IsThreeState ToggleButton.IsThreeState Property

Definition

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

public : Platform::Boolean IsThreeState { get; set; }
bool IsThreeState();

void IsThreeState(bool isthreestate);
public bool IsThreeState { get; set; }
Public ReadWrite Property IsThreeState As bool
<togglebutton IsThreeState="bool"/>

Property Value

bool bool

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

Remarks

ToggleButton and can have three states:

StatePropertyValue
checked@Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsChecked?text= IsChecked **true**
unchecked@Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsChecked?text= IsChecked **false**
indeterminate@Windows.UI.Xaml.Controls.Primitives.ToggleButton.IsChecked?text= 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.