如何将 .msstyles 应用到 .NET 应用程序? [英] How to apply a .msstyles to a .NET app?

查看:29
本文介绍了如何将 .msstyles 应用到 .NET 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

然后我想到通过 .msstyles 将它们剥皮简直太棒了文件,因为有 so 许多 地方 查找这些文件,以及工具 来制作你自己的.其中一些 msstyle 非常棒,可能不适用于您的整个桌面,但对于设计自制应用程序的样式来说,它会是完美的.

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.

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

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 :)

推荐答案

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

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

这篇关于如何将 .msstyles 应用到 .NET 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆