如何将 .msstyles 应用到 .NET 应用程序?

发布于 2024-08-15 07:32:27 字数 1061 浏览 6 评论 0原文

我经常在.NET 中编写GUI,其中大多数只具有作为GUI 的价值,例如,它们不会做任何其他不可能的事情。因此,大部分的开发工作都是为了让它们变得友好、直观和养眼。

然后我想到,通过 .msstyles 文件来给它们换肤真是太棒了,因为有所以 许多 地点< /a> 查找这些文件,以及工具 制作你自己的。 其中一些 msstyle 非常令人惊叹,可能不适用于您的整个桌面,但对于设计自制应用程序来说,它会是完美的。

那么,是否可以使用 .msstyles(或者类似的东西,因为 .aero.msstyles、.theme 等应该可以转换到某个点)来设计 .NET(VB 或 C#)中的应用程序样式?即使它需要一些复杂的设置或需要学习一些东西,一旦实用,所有 GUI 开发都会变得容易得多。 也许某种虚拟化?我不知道虚拟化在幕后是如何工作的,但我相信.NET应用程序调用一些Windows API来给他风格,也许虚拟化会起作用?如何?

任何想法都非常受欢迎!如果我找到答案,我也会贡献它:)

I code GUIs in .NET frequently, and most of them only have the value of being a GUI, e.g. they don't do anything otherwise impossible. So most of the development goes to making them friendly, intuitive and eye-candy.

Then it comes to my mind it would be simply amazing to skin them through .msstyles files, since there are so many places to find those files, and also tools to make your own.
And some of those msstyles are just stunning, probably not for your whole desktop, but for styling homemade apps it would be perfect.

So, is it possible to style apps in .NET (either VB or C#) using .msstyles (or maybe something similar, since .aero.msstyles, .theme, etc. should be convertable to some point)? Even if it requirired some complicated setup or something to learn, once made practical all GUI development would be much easier.
Maybe some sort of virtualization? I don't know how virtualization works behind the scenes, but I believe the .NET app calls some Windows API to give him the style, maybe virtualizing that would work? how?

Any idea is very welcome! And if I find an answer to that I'll contribute it as well :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

所有深爱都是秘密 2024-08-22 07:32:27

如果您想为自己的 GUI 设置主题,那么为什么不使用 WPF 呢?

If you want to theme your own GUI then why don't you use WPF?

马蹄踏│碎落叶 2024-08-22 07:32:27

好吧,我发现了一些可能有用的东西:

http://www.codeproject.com/KB/library/USkin.aspx?display=Print

如果有人提供了更好的答案,当然,将其放在这里,因为我不会选择自己的答案,除非这个问题在这里停留了足够长的时间,以至于被称为死亡(多少钱?一周?一个月?)

更新:60 美元,一个很好的解决方案,也可以转换 msstyles:

http://www.ksdev.com/skinengine/index.html

我会尝试两者并最终报告我的经验。

更新 2: SkinSoft 的 Visual Styler 看起来也相当不错。

Ok, I've found something that may work:

http://www.codeproject.com/KB/library/USkin.aspx?display=Print

If someone provides a better answer, of course, place it here, as I would not choose my own answer unless this question remains here long enough as to be called dead (how much that would be? a week? a month?)

Update: for $60, a good solution with possibility to convert msstyles as well:

http://www.ksdev.com/skinengine/index.html

I'll try both and report my experience eventually.

Update 2: SkinSoft's Visual Styler seems quite good too.

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