Toggle Switch represents a switch that can be toggled between two states. We can use a Toggle Switch control to let the user switch an option between on and off states. We use the IsOn property to determine the state of the switch. Handle the Toggled event to respond to changes in the state.
Step 1: Open a blank app and add a ToggleSwitch control either from the toolbox or by copying the following XAML code into your grid.
Here we have added a ToggleSwitch and a ProgressRing. By toggling the switch we are controlling the IsActive property of the Progress Ring.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: