MVVM Session 01 – Introduction to Model-View-ViewModel Pattern for WPF

I will be doing a in-depth series on WPF MVVM Pattern, and here is the first video of the series. View the video on YouTube for full 1920x1080 resolution and HD quality.

Video
Watch on YouTube now.

Demo Code
DCOMProductions.MvvmDemo.zip

10 Comments

  1. Lindsey Eastburn

    Hi David. Enjoyed your very clear introductory WPF MVVM demo. Just a little confused as I’m looking at other demos on line and see that INotifyProperyChanged is sometimes implemented in the ViewModel rather than in the Model, as with your example. Is this choice important? Why did you show it on the Model? Thanks.

    1. David Anderson (Post author)

      Depends on your scenario. Often you might have it implemented on both, though I tend to wrap my models in my view-model and not expose them, so most of the time only my view-model implements change notification.

  2. shrikant

    Its great video to understand MVVM. Thanks a lot for uploading source code

  3. Pradeep

    Hi David,
    I am new to WPF and MVVM. We are creating some user controls that change their state depending on values it receive from some servers/databases.
    For instance, we need to draw an Elipse and the color of this Elipse should change depnending on some properties received from Server. Can we handle these situations using MVVM pattern?
    Also the colors are read from the String resources.
    Please post me a sample that can help me.

    Thanks,
    Pradeep

    1. David Anderson (Post author)

      You can do this using an IValueConverter implementation. They are pretty easy to use and Msdn has a decent example. Basically you implement one, define it as a resource in Xaml, and specify it as a parameter in your Xaml binding. ie. {Binding PropName, Converter=’MyConverter’}

  4. Zack

    Still awaiting “Session 02”! 😛

  5. Duncan

    Hi, I have just watched your video on MVVM, which was just what I was looking for, do you have a download with this video?

    Many thanks

    1. David Anderson (Post author)

      Hey Duncan,
      I uploaded the source code and added the appropriate link to the article.

      Thanks,
      David A.

      1. Duncan

        David,

        Thanks will download, many thanks

      2. Rahman

        Please send me the Link from where I can download the Session 2 sample code.

Leave a Comment