ToggleSwitch.IsOn ToggleSwitch.IsOn ToggleSwitch.IsOn ToggleSwitch.IsOn Property

Definition

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

public : Platform::Boolean IsOn { get; set; }
bool IsOn();

void IsOn(bool ison);
public bool IsOn { get; set; }
Public ReadWrite Property IsOn As bool
<ToggleSwitch IsOn="bool" />

Property Value

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