3 Replies - 4078 Views - Last Post: 08 March 2011 - 07:29 AM

#1 shadowstep0705  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 48
  • Joined: 26-May 10

Difference WinForm and WPF

Posted 18 February 2011 - 10:49 PM

What is the actual difference between a WinForm form, and a WPF form?
Is This A Good Question/Topic? 0
  • +

Replies To: Difference WinForm and WPF

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4337
  • View blog
  • Posts: 12,137
  • Joined: 18-April 07

Re: Difference WinForm and WPF

Posted 19 February 2011 - 10:14 AM

Yes, 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.

Hopefully that answers your question. :)
Was This Post Helpful? 3
  • +
  • -

#3 MrPerq  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 57
  • Joined: 01-March 11

Re: Difference WinForm and WPF

Posted 08 March 2011 - 05:11 AM

I have only experimented a little with WPF, so I'm far from an expert there.
Its better support for animated graphics and transparancy make it definatly
the future, however they have problems with slightly blurry (but really annoying)
text.

Ok, ok, i know it has something to do with the graphical way WPF is rendered,
calculating half pixels, which should make these problems go away as resolutions
of screens go up, but frankly even if I would accept annoying text, my users
wouldent.

I would say go for WinForms, but keep WPF certainly in mind for the future.
Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Difference WinForm and WPF

Posted 08 March 2011 - 07:29 AM

View PostMrPerq, on 08 March 2011 - 08:11 AM, said:

I have only experimented a little with WPF, so I'm far from an expert there.
Its better support for animated graphics and transparancy make it definatly
the future, however they have problems with slightly blurry (but really annoying)
text.

Ok, ok, i know it has something to do with the graphical way WPF is rendered,
calculating half pixels, which should make these problems go away as resolutions
of screens go up, but frankly even if I would accept annoying text, my users
wouldent.

I would say go for WinForms, but keep WPF certainly in mind for the future.


The blurry text issue is fixed in WPF4 (.Net 4.0).
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1