更改 WPF 应用程序的外观?

发布于 2024-10-08 06:17:37 字数 92 浏览 0 评论 0原文

是否有简单的方法可以更改 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

公布 2024-10-15 06:17:37

我不知道我是否很好地理解了这个问题,但是在 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.

会发光的星星闪亮亮i 2024-10-15 06:17:37

我可以通过采用手动更改它
手动创建各种样式
控制...

取决于你开发它的聪明程度。

首先,普通的 WPF 控件根本没有外观。它们使用 INHERITED STYLES,您可以覆盖它。如果您在各种控件上手动覆盖它们,正如您所说,您基本上会故意忽略继承。只需在继承树的根部放置一个新的样式目录即可。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文