简体   繁体   English

如何将主题应用于 C# 中的 WindowsForm?

[英]How to apply themes to WindowsForm in C#?

This question is in my head for way too long.这个问题在我脑子里想了太久了。 How this guy made a form with a custom border and custom controls without a ".dll" file or something like that.这家伙是如何制作带有自定义边框和自定义控件的表单而没有“.dll”文件或类似文件的。 It's just a ".exe".它只是一个“.exe”。

My question is simple: How can I do this to my forms?我的问题很简单:我怎样才能对我的表单执行此操作?

在此处输入图片说明

Not sure what you mean without dll file but I would recommend checking out Drawing Custom Borders in Windows Forms不确定没有 dll 文件是什么意思,但我建议您查看在 Windows 窗体中绘制自定义边框

http://customerborderform.codeplex.com/ http://customerborderform.codeplex.com/

The fact that it is just a dll doesn't mean it doesn't rely on a 3rd party application.它只是一个 dll 的事实并不意味着它不依赖于 3rd 方应用程序。 The developer could have merged them in the dll, you can check if there are resouces/assmblies merged into the dll using ILMerge or if it is a WPF app, using other means .开发人员可以将它们合并到 dll 中,您可以使用ILMerge检查是否有资源/组件合并到 dll 中,或者它是否是 WPF 应用程序,使用其他方式

Other than using a 3rd party control or using GDI+ to custom draw your form/controls, there's no out of the box support for skins/themes in WinForm controls, except for what OS supports.除了使用第 3 方控件或使用 GDI+ 自定义绘制表单/控件之外,WinForm 控件中没有对皮肤/主题的开箱即用支持,操作系统支持的除外。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM