Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Anyone answer me please.
What is difference between form and WPF in .net.
Thanks in advance
Posted

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)

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!
:)
 
Share this answer
 
v2
See the answers to this very similar question:
Advantages and disadvantages of WPF over winforms ?[^]
 
Share this answer
 
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900