简体   繁体   English

如何使Mono / Winforms应用程序看起来像一个现代应用程序?

[英]How to make a Mono/Winforms application look like a modern application?

When I write a application in Mono with the Winforms GUI toolkit, it looks pretty native (ofcourse, because it is.), but it looks old, like an application that was made for Windows 98. I searched in Visual Studio projects, into the GUI code generated by the designer, but I don't see what the difference is. 当我使用Winforms GUI工具包在Mono中编写应用程序时,它看起来很原生(当然,因为它是。),但它看起来很旧,就像为Windows 98制作的应用程序。我在Visual Studio项目中搜索到了设计师生成的GUI代码,但我看不出有什么区别。 The VS designer also imports System.Windows.Forms, but it looks nice and modern, not old. VS设计师还导入了System.Windows.Forms,但它看起来不错而且现代,不老。

Back in the days, when I was codign in Visual Basic (not the .Net kind), we did that with a manifest file, that worked nice (on Windows XP, Vista or 7 wasn't released back then.). 回到那些日子里,当我在Visual Basic(不是.Net类型)中编写代码时,我们使用清单文件来做到这一点,效果很好(在Windows XP上,Vista或7当时没有发布)。 But I doubt that a manifest file is the solution here, as I cannot find anything relating to this on the internet. 但我怀疑清单文件是否是解决方案,因为我无法在互联网上找到与此相关的任何内容。

So, how do I make a Mono application look like a modern Winforms application? 那么,如何使Mono应用程序看起来像现代Winforms应用程序?

Thank you. 谢谢。

Application.EnableVisualStyles(); //Do this before creating your first form.

http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx

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

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