Back to Devexpress

SimpleButton.IsThreeState Property

wpf-devexpress-dot-xpf-dot-core-dot-simplebutton-4829bd54.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool IsThreeState { get; set; }
vb
Public Property IsThreeState As Boolean

Property Value

TypeDescription
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

SimpleButton Class

SimpleButton Members

DevExpress.Xpf.Core Namespace