SimpleButton.IsThreeState Property
Gets or sets whether the button supports three states (checked, unchecked and indeterminate). This is a dependency property.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the button supports three states; false if the button supports two states (checked and unchecked). |
Remarks
This property is in effect if the button’s SimpleButton.ButtonKind property is set to ButtonKind.Toggle.
A button supports three states (checked, unchecked and indeterminate) if its IsThreeState property is set to true. Otherwise, if this property is set to false, only checked and unchecked states are supported.
To set the button to the indeterminate state (if supported), set its SimpleButton.IsChecked property to null.
After the SimpleButton.IsChecked property’s value has been changed, the button fires the corresponding event (SimpleButton.Checked, SimpleButton.Unchecked or SimpleButton.Indeterminate).