Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

public bool IsThreeState { get; set; }

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).

See Also