开发者

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:

  1. Open the project in blend
  2. Right Click on the ToggleSwitch in the design view and click on Edit Template > Edit a copy
  3. Now the template of your selected toggle switch would be generated
  4. Search for the SwitchForeground property and set it to your desired color

You're now set

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜