如何更改 WPF 进度条上的颜色
我有一个 WPF、vista 风格的进度条,我想在其上更改画笔。我已将前景画笔设置为另一种颜色,但有一种嗖嗖的动画效果,其颜色仍然是默认的绿色。我怎样才能改变这个?
I have a WPF, vista style progressbar that I want to change the brushes on. I've set the foreground brush to another color, but there is a sort of whoosh animation effect whose color is still the default green. How can I change this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您需要编辑项目中进度栏控件的 ControlTemplate 样式。
使用这些样式的示例:
您可以在 MSDN 上看到这样的示例: ProgressBar ControlTemplate 示例< /a>
To do this you need to edit the ControlTemplate Styles for the Progress Bar control in your project.
Example using these styles:
You can see an example of this on MSDN: ProgressBar ControlTemplate Example