ToggleSwitch.IsOn Property

Definition

Gets or sets a value that declares whether the state of the ToggleSwitch is "On".

public:
 property bool IsOn { bool get(); void set(bool value); };
bool IsOn();

void IsOn(bool value);
public bool IsOn { get; set; }
var boolean = toggleSwitch.isOn;
toggleSwitch.isOn = boolean;
Public Property IsOn As Boolean
<ToggleSwitch IsOn="bool" />

Property Value

Boolean

bool

true if the state is "On"; false if the state is "Off".

Remarks

"On" state uses the template from OnContentTemplate. "Off" state uses the template from OffContentTemplate.

Applies to