2

Possible Duplicate:
WPF vs. Windows Forms

I am starting to learn C# and wonder, when and why I should choose WPF? I also wonder what WCF is. Are they both GUI related stuff to head into?

If I can make a GUI with Winforms, why should I make a GUI with WCF/WPF?

Community
  • 1
  • 1

4 Answers4

12

WPF is a more modern technology than Winforms. It has better layout handling through the XAML code and allows for more advanced GUI patterns such as MVVM (Model View View-Model) built on databinding.

If you start out fresh I would suggest going for WPF directly. Stay out of the databinding and MVVM to start with and just put your code in the code behind file.

WCF is Windows Communication Foundations which is not directly related to GUI programming, although many client applications written in WPF or Winforms uses WCF for communication.

Anders Abel
  • 67,989
  • 17
  • 150
  • 217
2

WPF is also a great method of deploying updates to multiple users simultaneousnessly. When you publish an update in WPF it is immediately available to all users and does not require installation to run. The user simply hits the xbap and they begin downloading the newest copy of the application.

Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
2

On top of what has been already said, I'll just add that learning WPF will give you excellent foundations for Silverlight, in case you want to try something different one day (or - less desktop oriented).

k.m
  • 30,794
  • 10
  • 62
  • 86
1

You use WPF to provide rich contents in UI. http://msdn.microsoft.com/en-us/magazine/cc163662.aspx

Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240