1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C# - Window Forms or WPF?

Discussion in 'C, C++, C#' started by TheeAriGrande, Aug 6, 2013.

  1. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    EDIT: Decided to go with WinForms. Maybe I'll use WPF sometime in the feature.

    I dove head first into C# today and while reading through some tutorials and coding examples I came across the WPF Application template. Currently, I'm learning and playing around with Windows Forms Applications.

    I'm about to code my first real application (Learn by doing is my motto) and I just want to know which template a newbie should start with. Windows Form or WPF?

    I read that WPF is more complicated, but the way I see it is that they're basically the same, but WPF allows for a a better front end experience.
     
    Last edited: Aug 6, 2013
  2. buckybrendan

    buckybrendan Registered Member

    Joined:
    Aug 6, 2013
    Messages:
    64
    Likes Received:
    72
    Occupation:
    Web Developer
    Location:
    Ireland
    if it is for learning then winforms is a good place to start. but do remember these technologies are not competiting against each other. use them in conjunction together to create high quality programs....

    also they are not complicated unless you are making complex programs... if you are learning then make simple programs and work your way up
     
    • Thanks Thanks x 1
  3. neutralhatter

    neutralhatter Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 23, 2010
    Messages:
    430
    Likes Received:
    330
    There are a few important differences between winforms and WPF.

    1. technologically WPF is more advance as a front end solutions since you can fully customize the appearance with XAML => looks a bit like html5
    2. In wpf we use a different approach then in Winforms, based on MVVM principle where everything is more loosely coupled

    Winforms is a good place to learn OO since the object structure is more straight forward but if you want to be a professional developer, you probably will want to learn wpf as well.
     
    • Thanks Thanks x 1
  4. sm754

    sm754 Registered Member

    Joined:
    Mar 21, 2012
    Messages:
    93
    Likes Received:
    38
    Occupation:
    Farmer
    Location:
    Azerbaijan
    I use WPF now, but it feels fundamentally "incomplete"; there are lots of odd glitches, XAML still isn't well documented, and Microsoft looks about ready to abandon it (if they haven't already). It's easy to make something look visually cool, but functionally it can get very convoluted. I'm still more comfortable rolling things out in WinForms.
    Data binding and MVVM are cool, though.
     
  5. healzer

    healzer Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Jun 26, 2011
    Messages:
    2,366
    Likes Received:
    1,967
    Gender:
    Male
    Occupation:
    Marketing automation tools
    Location:
    Somewhere in Europe
    Home Page:
    I never tried WPF myself.
    But I am looking for a better solution for Windows Forms, I am tired of them because of the styling/UI (minimal options and such).

    WPF does look awesome, but not everyone likes it, so I'm not sure whether it is worth to get into it.

    Any1 any other solutions?