WPF 与 Windows 窗体

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/885266/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 20:27:02  来源:igfitidea点击:

WPF vs. Windows Forms

wpfwinforms

采纳答案by Bob King

We went to WPF and never looked back.At this point I recommend doing all new development in WPF because the experience is that much better. But take that with a grain of salt, especially if you have a team with alot of WinForms experience.

我们去了 WPF,再也没有回头。在这一点上,我建议在 WPF 中进行所有新开发,因为体验要好得多。但请持保留态度,尤其是如果您的团队拥有丰富的 WinForms 经验。

回答by Nate

WPF will require .NET 3.0 (or later) and will lend itself toward better seperation of your presentation / business logic / data access layers. If you have a UI Designer or you are proficent in Expression Blend WPF is probably the way to go.

WPF 将需要 .NET 3.0(或更高版本),并将有助于更好地分离您的表示/业务逻辑/数据访问层。如果您有 UI 设计师或者您精通 Expression Blend WPF 可能是您要走的路。

If there is not a UI Designer and seperation of concerns is not an issue, WinForms will not introduce any additional learning curve to your project.

如果没有 UI 设计器并且关注点分离不是问题,WinForms 将不会为您的项目引入任何额外的学习曲线。

回答by Kevin Dungs

If you work on a big project with (interface-)designers on the one and programmers on the other hand, WPF can be better than Forms as you can separate you GUI from your code much better through the xml.

如果你在一个大项目上工作,一个是(接口)设计师,另一方面是程序员,WPF 可能比 Forms 更好,因为你可以通过 xml 更好地将 GUI 与代码分开。

But generally speaking I wouldn't see myself in a position to once and for all decide over WPF / Windows Forms.

但总的来说,我认为自己无法一劳永逸地决定 WPF/Windows 窗体。

回答by Ralph Shillington

By the looks of it, Visual Studio is going WPF as well. A New Look for Visual Studio 2010

从表面上看,Visual Studio 也在使用 WPF。 Visual Studio 2010 的新面貌