更改 WPF 应用程序的外观?
是否有简单的方法可以更改 WPF 应用程序的外观,就像在 Java Swing 中一样?
我可以通过在各种控件上采用手动创建的样式来手动更改它......
Is there easy way to change look and feel of your WPF app, just like in Java Swing?
I can change it manually, by adopting manually crated styles on various controls...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道我是否很好地理解了这个问题,但是在 WPF Toolkit< /a> 有一些主题可以让您快速更改应用程序界面。
I don't know if I have well understood the question but in WPF Toolkit there are some themes that allows you to change quickly your application interface.
取决于你开发它的聪明程度。
首先,普通的 WPF 控件根本没有外观。它们使用 INHERITED STYLES,您可以覆盖它。如果您在各种控件上手动覆盖它们,正如您所说,您基本上会故意忽略继承。只需在继承树的根部放置一个新的样式目录即可。
Depends how smart you were developing it.
Normal WPF controls have no look at all - to start with. They use INHERITED STYLES, which you can override. If you override them manually, as you said, on various controls, you basically willfully ignore the inheritance. Just put in a new style catalogue at the root of the inheritance tree.