We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我不知道有任何完整的免费库,但为了改进常见 .Net 控件的外观或功能,我会查看 CodeProject 站点。有很多关于自定义控件的文章。例如,这里是关于制作圆形按钮的。
您可能需要进行所有者绘图,但假设该文章或其他文章中的代码的许可证适合您的需求,您可能可以重用代码,而无需自己编写太多内容,并且某些文章包含以下类库:您可能只能在代码中引用。
如果您想让您的应用程序具有 Windows 7 外观,还有适用于 .Net 的 Windows API 代码包
I don't know of any complete free library, but to improve the look or functionality of common .Net controls I'd look at the CodeProject site. There's lots of articles about customizing controls. For example, here's one about making round buttons.
You might need to do owner drawing, but assuming that the license for the code in that or other articles are suitable for your needs you might be able to re-use code without having to write much yourself and some of the articles contain class libraries that you might just be able to reference in your code.
If you want to give your app a Windows 7 look there's also the Windows API Code Pack for .Net
据我所知,在WinForms中没有办法轻松地实现“主题”或“换肤”。您将必须找到/购买自定义控件(或控件库)来完成您需要的所有渲染或按照您提到的进行渲染并渲染您自己的控件。
如果您将应用程序迁移到 WPF,您会发现对主题和“换肤”有更多支持。
干杯。
As far as I know, there is no way to do "themes" or "skinning" easily in WinForms. You will have to find/purchase custom controls (or control libraries) that do all of the rendering that you require or do as you mentioned and render your own controls.
If you migrate your application to WPF, you'll find a lot more support for themes and "skinning".
Cheers.