wp7 toggleswitch button color
ToggleSwitch in WP7 has a SwitchBackground color that one can use to cha开发者_Python百科nge the background of the toggleswitch. I need to change the color of the slider button itself on the toggle switch. I am talking about the rectangular block that you slide to left or right.
How can I achieve this?
Here's a walkthrough of changing the styling of ToggleSwitch. The translation from Swedish to English is automated, but it's not too bad.
To make an override on ToggleSwitch style
As always, be mindful of user interface guidance when modifying supplied styling.
UI Design and Interaction Guide for Windows Phone v2.0 is now available
You need to edit the default template of the ToggleSwitch. Here are the steps to how you'd achieve this:
- Open the project in blend
- Right Click on the ToggleSwitch in the design view and click on Edit Template > Edit a copy
- Now the template of your selected toggle switch would be generated
- Search for the SwitchForeground property and set it to your desired color
You're now set
精彩评论