Answered Winform vrs WPF Code changes

  • Tuesday, May 01, 2012 8:35 AM
     
     

    Hello

    i am developing win form based application from past few yeas, i know the main deference between these two is the sepration of ui and code,

    i want to know the difference from the Programmer(coder) point of view, whats the difference in writing win form C# code with writing wpf code.



    -- Thanks, Amit kala Please remember to click “Mark as Answer” on the post that helps you, & to click “Unmark as Answer” if a marked post does not actually answer your question.

All Replies

  • Tuesday, May 01, 2012 11:31 AM
     
     

    Hi,

    the main difference is the usage of XAML for the UI (and the code-behind concept). With XAML there are coming some patterns like MVVM which are really helpful in bigger projects/applications.

    The advantage of XAML is that you also can use it in Silverlight or Windows 8 Metro Style Apps (with nearly the same markup).


    Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.

  • Tuesday, May 01, 2012 11:41 AM
     
     

    Thanks for d reply,

    actually i am asking from d coder point of view & not from designers

    does writing in winform.cs is same as writning in Window1.xaml.cs  or there is coding difference


    -- Thanks, Amit kala Please remember to click “Mark as Answer” on the post that helps you, & to click “Unmark as Answer” if a marked post does not actually answer your question.

  • Tuesday, May 01, 2012 12:03 PM
     
     Answered

    WPF is really about using XAML to define the user-interface (and binding the user-interface to your data).

    It won't have any effect on your core back-end code, e.g. data access objects etc. But it will affect how you ultimately end up displaying the data from your data access objects to the user.

    There's probably no easy answer to what you're asking unless you can be more specific, but basically XAML allows you to define your user-interface in a declarative way, meaning you can do lots of nice snazzy things with your user-inteface with little coding (but requires knowledge of XAML). Everything else stays the same!

    • Marked As Answer by Amit_kala Wednesday, May 02, 2012 8:53 AM
    •  
  • Wednesday, May 02, 2012 8:53 AM
     
     

    Hello

    that's what i was i asking RJP1973 , let if i am developing a wpf app , i can give design part to xaml Designer and i will do .CS coding , as you said  you have not faced any any effect on your back end code.

    thanks  


    -- Thanks, Amit kala Please remember to click “Mark as Answer” on the post that helps you, & to click “Unmark as Answer” if a marked post does not actually answer your question.