Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WP7 中的 ToggleSwitch 有一个 SwitchBackground 颜色,可以用来更改切换开关的背景。我需要在切换开关上更改滑块按钮本身的颜色。我说的是您向左或向右滑动的矩形块。
我怎样才能做到这一点?
这是更改 ToggleSwitch 样式的演练。从瑞典语到英语的翻译是自动化的,但还不错。
覆盖 ToggleSwitch 样式
与往常一样,在修改提供的样式时请注意用户界面指南。
Windows Phone v2.0 的 UI 设计和交互指南现已推出
您需要编辑 ToggleSwitch 的默认模板。以下是您如何实现这一目标的步骤:
你现在已经设置好了