ToggleSwitch
Logically, 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.24 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 IsOn
changes.
ToggleSwitch
has a standard Header
property, and you can customize ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.