Changing the Switch Color

,

By default, the ToggleSwitch control template presents the On state using the phone’s theme color. You can explicitly set the ToggleSwitch color using its SwitchForeground property, as shown in the following excerpt:

<toolkit:ToggleSwitch
        Header="ToggleSwitch with custom switch color"
        IsChecked="true"
        SwitchForeground="Red"/>

In most cases, ToggleSwitch makes for a better choice than the standard CheckBox control. And after you start using it, it becomes almost as ubiquitous as the Button control.

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

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