Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET WPF Forms
Anyone answer me please.
What is difference between form and WPF in .net.
Thanks in advance
Posted 26-Sep-12 19:56pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

See the answers to this very similar question:
Advantages and disadvantages of WPF over winforms ?[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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!
Smile | :)
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100