wp7 切换开关按钮颜色
WP7 中的 ToggleSwitch 有一个 SwitchBackground 颜色,可用于更改切换开关的背景。我需要更改切换开关上滑块按钮本身的颜色。我说的是向左或向右滑动的矩形块。
我怎样才能实现这个目标?
ToggleSwitch in WP7 has a SwitchBackground color that one can use to change 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是更改 ToggleSwitch 样式的演练。从瑞典语到英语的翻译是自动的,但还不错。
要覆盖 ToggleSwitch 样式
一如既往,在修改提供的样式时请注意用户界面指南。
Windows UI 设计和交互指南手机 v2.0 现已推出
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
您需要编辑 ToggleSwitch 的默认模板。以下是实现此目的的步骤:
您现在已设置完毕
You need to edit the default template of the ToggleSwitch. Here are the steps to how you'd achieve this:
You're now set