locked
MVVM For WPF or Windows RRS feed

  • Question

  • Hi All,

    Being novice to MVVM World, have few queries. 

    1. I need a sample that would help me implement MVVM pattern in my project. There is a one link already (http://code.msdn.microsoft.com/Basic-MVVM-Setup-12e5d46c/view/Discussions#4374) that talks abt MVVM from scratch but I had few queries on implementation but did not get reply yet.

    2. When I say MVVM - is it only about  INotifyPropertyChanged interface or there are some ohter interfaces (ICommand or some other) that I must implement to say my patter is complete ?

    3. Can we have MVVM on Windows app or is it meant for WPF only ?

    4. A Can someone explain how MVVM will be implemented in this example to get idea as how things are implemented ? (this is just ex... I will take this as base and implement in my project...)

    Form with a text box and a button. On form load it gets some info. and populate in text box. Once I edit value in text box and click on button.. update value goes back to source ????

    Thanks in advance to all.

    Monday, September 10, 2012 9:05 AM

All replies

  • MVVM isn't platform specific but it's fair to say WPF/Silverlight/Windows Phone/Windows 8 (ok basically XAML based tools), have made it popular. There is a lots of information on it on the web. Start with something very simple; http://visualstudiomagazine.com/articles/2011/10/01/mvvm-in-5-minutes.aspx

    But remember it's not platform specific, other frameworks exists. You might even consider looking at http://knockoutjs.com/ it has a very nice tutorial site.


    http://pauliom.wordpress.com

    Wednesday, September 19, 2012 5:01 PM
  • It is true that MV-VM is not specific to WPF of XAMAL based clients but in piratical aspect it is true , 

    Actually WPF  or Silverlight provides several key features like Advance Data/Property binding , Routed Events , Dynamic Error Handling that makes MV_VM implementation very easy 

    If you Have to do same thing in Windows Forms application then you need to do lot of custom implementation that will make your job harder and there is no ROI of that .

    I you want to learn more about MV-VM you can checkout this page  on my site that consolidates summary of resource that I used to learn MV-VM

    Regards

    Ashwini

    Friday, September 21, 2012 12:28 AM