ToggleSwitch is like a
ToggleButton or its more well-known derived
CheckBox control, just with a different default appearance that makes it look like a light switch, and with support for only two states (no indeterminate state). Figure 14.15 shows a simple
ToggleSwitch with no properties set. The user can turn a
ToggleSwitch on and off by tapping it or dragging the thumb.
ToggleSwitch exposes a Boolean
IsOn property and raises a simple
Toggled event when the value of
ToggleSwitch has a standard
Header property, and you can customize ...