243

I'm a C#/Windows Forms programmer with more than 5 years experience. I've been investigating WPF using the MVVM (Model-View-ViewModel) design pattern. I have searched the Internet for tutorials. I have even watched the entirety of Jason Dolinger's awesome video. Although I have found many, I have not found one that takes me from start to finish. What I really want is a tutorial that doesn't assume any previous WPF knowledge.

What are your favorite WPF-MVVM tutorials that helped you to learn?

Jon Clements
  • 138,671
  • 33
  • 247
  • 280
JP Richardson
  • 38,609
  • 36
  • 119
  • 151

22 Answers22

160

Your question really seems to be asking 2 questions:

  1. Where are some good tutorials on WPF, assuming I have no previous WPF experience?
  2. Where are some good tutorials on learning MVVM?

Some of these resources may be duplicated in previous answers...

Tutorials on WPF

MVVM Tutorials

Composite WPF (Prism) Resources
Though not exactly what you asked, it is the natural progression with WPF and MVVM.

Metro Smurf
  • 37,266
  • 20
  • 108
  • 140
44

I was in exactly the same situation recently, mate, and I can tell you what I did.

Josh Smith "WPF Apps With The Model-View-ViewModel Design Pattern" read again, again and again :-) download the code, examine, compile and keep it around

MVVM foundation

  1. Examine the framework, use it in your app.
  2. Look at the Demo application in that framework.

No real start-to-finish tutorials, sorry...

Massimiliano
  • 16,770
  • 10
  • 69
  • 112
23

I really liked these articles:

  1. MVVM for Tarded Folks Like Me
  2. How Tards Like Me Make MVVM Apps

He really dumbs down the concept in a humorous way. Worth reading.

JP Richardson
  • 38,609
  • 36
  • 119
  • 151
15

Reed Copsey published a nice tutorial that writes a trivial RSS app in WinForms, then makes a straight port to WPF, and finally converts to MVVM. It makes a nice introduction to MVVM before you try and tackle a full description like Josh Smith's article. I'm glad that I read Reed's tutorial before Josh's article, because it gives me a little context to understand the details that Josh is digging into.

Community
  • 1
  • 1
Don Kirkby
  • 53,582
  • 27
  • 205
  • 286
11

This one will do:

RIATasks: A Simple Silverlight CRUD Example

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Michael Washington
  • 2,744
  • 20
  • 29
10

I read Josh Smith's article and found it very difficult. Once understood, I wrote a very simple one that should get you really started on it. Get it here.

Abdulsattar Mohammed
  • 10,154
  • 13
  • 52
  • 66
  • I used google to look for a cached version http://webcache.googleusercontent.com/search?q=cache:zZZ9tr8khHYJ:codingtales.com/2010/01/12/Getting-Started-With-MVVM-in-WPF/+http://codingtales.com/2010/01/12/getting-started-with-mvvm-in-wpf/&cd=1&hl=fr&ct=clnk&gl=ca – Black Horus Dec 24 '10 at 17:06
  • [This link seems to work](http://codingtales.com/2010/01/12/getting-started-with-mvvm-in-wpf/) – ckoo Feb 24 '12 at 02:57
8

There's a very good Techdays 2010 video introduction to the MVVM pattern, clearly explained:

Chris S
  • 64,770
  • 52
  • 221
  • 239
7

This isn't a tutorial, but it's the diagram on this page that helped me get my head around mvvm.

Simon P Stevens
  • 27,303
  • 5
  • 81
  • 107
7

A while ago I was in a similar situation (allthough I had a little WPF knowledge already), so I started a community wiki. There are a lot of great ressources there:

What applications could I study to understand (Data)Model-View-ViewModel?

Community
  • 1
  • 1
bitbonk
  • 48,890
  • 37
  • 186
  • 278
6

Some blogs/websites to check out:

Currently, Josh Smith has a "From Russia With Love" article that can be of some use to you.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Muad'Dib
  • 28,542
  • 5
  • 55
  • 68
  • 1
    well, the "From Russia With Love" article is pretty good, but I think it's intended for people who already have some knowledge of MVVM... – Thomas Levesque Sep 11 '09 at 16:33
  • +1 for the link to Dr. WPF. His articles, samples and snippets really helped me get up to speed on WPF. – dthrasher May 06 '10 at 20:15
6

My blog has a complete series of tutorial starting from scratch for WPF MVVM and WPF Prism. Have a look here: http://blog.raffaeu.com/archive/2009/06/03/wpf-and-vmmv-tutorial-01-introduction.aspx

5

I found http://windowsclient.net/learn/videos_wpf.aspx as a good start

Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
5

For something released a little more recently (last month), take a look at Rainer Stropek's video series MVVM in WPF and Silverlight

He flies right through it, but does an extremely good job of going from start to finish with an actual application.

James Skemp
  • 8,018
  • 9
  • 64
  • 107
5

Take a look at Jason Dollinger's MVVM video at Lab49. We have used this in the past to train our team on MVVM.

Brent Schooley
  • 782
  • 1
  • 6
  • 20
4

Don't skip John Papa's presentation from PDC Conference 2010. See it here.

pencilCake
  • 51,323
  • 85
  • 226
  • 363
4

I have written an application using WPF, Prism and MVVM to simulate hiring a cab, you can read about it on my blog, download the source here and play with it.

skjagini
  • 3,142
  • 5
  • 34
  • 63
4

If you are coming from winforms and you are looking for a tutorial. I recommend you the MVVM Trainning extension for visual studio: http://visualstudiogallery.msdn.microsoft.com/3ab5f02f-0c54-453c-b437-8e8d57eb9942 It´s a tutorial with code examples. The tutorial is divided in 3: Basic WPF app, the same app in MVVM and the same using Inversion of control. Quite useful in your case :)

I also like these ones http://msdn.microsoft.com/en-us/magazine/dd419663.aspx http://karlshifflett.wordpress.com/mvvm/

and this one is with Prism. http://www.developmentalmadness.com/archive/2009/10/03/mvvm-with-prism-101-ndash-part-1-the-bootstrapper.aspx It may be worth it to take a view to Prism if you are thinking to program WPF apps with MVVM

3

A very basic tutorial here

http://www.c-sharpcorner.com/UploadFile/yougerthen/474/

biju
  • 17,554
  • 10
  • 59
  • 95
3

A good book on MVVM with WPF

Building Enterprise Applications with Windows® Presentation Foundation and the Model View ViewModel

pchajer
  • 1,584
  • 2
  • 13
  • 25
3

You would love to read these :-

http://www.wintellect.com/CS/blogs/jlikness/archive/2010/04/14/model-view-viewmodel-mvvm-explained.aspx

Gurpreet Singh
  • 1,641
  • 3
  • 17
  • 29
2

Here is a very good tutorial for MVVM beginners; http://geekswithblogs.net/mbcrump/archive/2010/06/27/getting-started-with-mvvm-general-infolinks.aspx [Getting started with MVVM (General Info+Links)]

Sunil
  • 2,885
  • 5
  • 34
  • 41