Windows.UI.Xaml.Controls.ToggleSwitch.IsOn

June 22, 2022 ยท View on GitHub

-description

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

-xaml-syntax

<ToggleSwitch IsOn="bool" />

-property-value

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.

-examples

-see-also

Contents

  1. 1-description
  2. 2-xaml-syntax
  3. 3-property-value
  4. 4-remarks
  5. 5-examples
  6. 6-see-also