,

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 CheckBox controls are derived. In fact, internally the ToggleSwitch uses a ToggleButton to provide its functionality.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.214.194