form和WPF(C#,. net)有什么区别? [英] What is difference between form and WPF (C#,.net) ?

查看:103
本文介绍了form和WPF(C#,. net)有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以回答我.
.net中的form和WPF有什么区别?
在此先感谢

Anyone answer me please.
What is difference between form and WPF in .net.
Thanks in advance

推荐答案

总之,
比较的简单结论是,
In short,
simple Conclusion of Comparison is,
1. Presentation layer (User Interface, Application Look) 
     Winform < WPF    (WPF is better than Winform)

2. Programming layer (Efforts for Coding)    
     WinForm > WPF    (WinForm are better than WPF)


仅是结论

有关详细信息,您应该比较控件,事件和其他类似的东西,例如,这些东西很容易制作新的用户控件,组件等...

如今,有很多第三方工具可用,它们结合了Winform和Amp的优势. WPF,
服务控件 提供丰富的Presentation(Wpf)+ Easy(省力)编码(Winform).

祝您编码愉快!
:)


It is Conclusion only

for details you should compare controls, events and other things like which is easy for making new user-controls, components etc...

Now a days there are many third party tools available that are combining advantages of both Winform & WPF,
and serves Controls that gives rich Presentation(Wpf) + Easy(less effort) Coding(Winform).

Happy Coding!
:)


请参阅此非常相似的问题的答案:
WPF相对于winform的优点和缺点? [ ^ ]
See the answers to this very similar question:
Advantages and disadvantages of WPF over winforms ?[^]


WPF专注于演示和创建可能具有动画效果的光滑"界面.WPF通过DirectX利用图形卡,并且还打算将界面与底层逻辑分开.相比之下,Winforms使用标准的GDI子系统,该子系统在许多情况下更为成熟,并且在某些图形任务中可以相当快. WPF还使用XAML设计,XAML是XML的派生产品,因此其结构与WinForms有所不同.

当我被问到我更喜欢先学习的软件时,出于以下原因,我总是首先推荐WinForms ...

1)它是标准的,并与.NET应用程序设计一起进行教学
2)最有可能作为程序员,您将花费大量时间在代码维护上,这些代码维护已经创建了winform.
3)工业界仍在使用许多winform,尽管每天都有很多Winform出现在WPF中.
4)Winforms将使您的脚浸湿,并提供坚实的基础,可以帮助您更快地进入WPF.
5)在某些情况下,Winforms使用起来会更容易一些,并且视应用程序的不同而有所不同.

现在显然WPF即将到来并日趋成熟.因此,它可能有一天会取代winforms.但是我不认为它会立即执行此操作,您仍然可以立即获得winform的优势,然后在将来使用WPF.


请参阅此链接以获取wpf的优势
http://stackoverflow.com/questions/636028/advantage- -wpf-app-vs-winform-for-business-apps [
WPF is focused on presentation and creating "slick" interfaces that may be animated etc. WPF utilizes graphic cards through DirectX and also intends to separate the interface from the underlying logic. In comparison, Winforms use the standard GDI subsystem which in many cases is more mature and can be considerably faster in certain graphic tasks. WPF is also designed with XAML which is a derivative of XML and thus the structure is quite a bit different than that of WinForms.

When I am asked which I prefer someone learn first, I always recommend WinForms first for the following reasons...

1) It is standard and taught along with .NET application design
2) Most likely as a programmer you are going to spend a lot of time in code maintenance which will have winforms already created.
3) Industry is still using a lot of winforms and very few have jumped into WPF yet, even though more are doing it every day.
4) Winforms will get your feet wet and provide a solid foundation which can help you jump into WPF much faster.
5) In some situations Winforms are a bit easier to work with and can be faster depending on the application.

Now obviously WPF is coming around and maturing. So it could possibly replace winforms some day. However I don''t see it doing this immediately and you can still get the most bang for your buck doing winforms right now and then pick up WPF in the future.


See this link for advantage of wpf
http://stackoverflow.com/questions/636028/advantage-of-wpf-app-vs-winform-for-business-apps[^]


这篇关于form和WPF(C#,. net)有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆