O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Providing a Boolean Option with the ToggleSwitch

ToggleSwitch enables the user to turn something on or off. It is much like the built-in CheckBox control, yet more compatible with the modern UI design aesthetic of the phone. ToggleSwitch presents a large, touch friendly switch that users can alternate between two states (see Figure 9.23).

Image

FIGURE 9.23 ToggleSwitch can be localized and its switch color modified.

While ToggleSwitch does not inherit from any built-in button related controls, such as ButtonBase, but rather from ContentControl, it behaves much like the built-in ToggleButton control in the FCL of which the built-in RadioButton and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required