ToggleButton.IsThreeState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.