关于Winforms:WPF与Windows Forms

WPF vs. Windows Forms

本问题已经有最佳答案,请猛点这里访问。

重复:

  • WPF vs WinForms or Rich UI vs Stable Applications? What do you think about the future of the Windows Forms platform?
  • When is Winforms the correct choice vs. WPF?
  • WPF versus Winforms
  • Advantage of WPF app vs Winform for business apps?
  • WPF, Winforms, or something else?

与Windows窗体相比,WPF的优缺点是什么?


我们去了WPF,再也没有回头。此时,我建议在WPF中进行所有新开发,因为经验会好得多。但是要花点时间,尤其是如果您有一支具有大量WinForms经验的团队。


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

如果没有UI设计器并且关注点分离不是问题,则WinForms不会在您的项目中引入任何其他学习曲线。


如果您在一个大型项目中一方面使用(interface-)设计人员,另一方面使用程序员,则WPF可能比Forms更好,因为您可以通过xml更好地将GUI与代码分开。

但是总的来说,我不会一劳永逸地决定WPF / Windows窗体。


从外观上看,Visual Studio也将使用WPF。
Visual Studio 2010的新外观