ToggleSwitch.IsOn Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.