Change look and feel in WPF application?

拜拜、爱过 提交于 2020-01-06 01:17:52

问题


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...


回答1:


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.




回答2:


I can change it manually, by adopting manually crated styles on various controls...

Depends how smart you were developing it.

Normal WPF controls have no look at all - to start with. They use NIHERITED 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.



来源:https://stackoverflow.com/questions/4470081/change-look-and-feel-in-wpf-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!