Back to Devexpress

ToggleSwitchEdit.IsThreeState Property

wpf-devexpress-dot-xpf-dot-editors-dot-toggleswitchedit.md

latest2.1 KB
Original Source

ToggleSwitchEdit.IsThreeState Property

Gets or sets whether the toggle switch editor supports three states (checked, unchecked and indeterminate).

Namespace : DevExpress.Xpf.Editors

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 editor supports three states; false if the editor supports two states (checked and unchecked).

|

Remarks

A toggle switch editor 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.

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

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

See Also

ToggleSwitchEdit Class

ToggleSwitchEdit Members

DevExpress.Xpf.Editors Namespace