Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.35 KB

togglebutton_isthreestate.md

File metadata and controls

44 lines (31 loc) · 1.35 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.Primitives.ToggleButton.IsThreeState
winrt property

Microsoft.UI.Xaml.Controls.Primitives.ToggleButton.IsThreeState

-description

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

-xaml-syntax

<togglebutton IsThreeState="bool"/>

-xaml-values

togglebutton
togglebuttonA literal ToggleButton, or a derived type such as CheckBox or RadioButton.
## -property-value **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.

-examples

-see-also