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

SimpleButton.IsChecked Property

Gets or sets whether a button is checked. This is a dependency property.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public bool? IsChecked { get; set; }

Property Value

Type Description
Nullable<Boolean>

A Boolean value (that can also have a value of null) that specifies the button’s state.

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 SimpleButton.IsThreeState property is set to true. Otherwise, if this property is set to false, only checked and unchecked states are supported.

Use the IsChecked property to specify the button’s state. To set the button to the indeterminate state (if supported), set the IsChecked property to null.

After the IsChecked property’s value has been changed, the button fires the corresponding event (SimpleButton.Checked, SimpleButton.Unchecked or SimpleButton.Indeterminate).

See Also