December 2014
Intermediate to advanced
512 pages
17h 4m
English
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.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.
FIGURE 14.15 The ToggleSwitch is like a light switch that can be on or off.
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 ...
Read now
Unlock full access