Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

6. MVVM > Using MVVM Light to enable MVVM applications

Using MVVM Light to enable MVVM applications

Applies to Silverlight 3, 4, 5 and WP7

Not all necessary building blocks are available out of the box in Silverlight when you want to start using the MVVM pattern. Certain base classes and/or components have to be written—your basic ViewModel classes, ICommand implementations, a way to connect your View to your ViewModel, a way to communicate between ViewModels, and so on. Doing all of this by yourself would quickly result in quite a workload.

Due to the popularity of the pattern, quite a few MVVM-enabling frameworks have popped up, of which the best-known are probably Caliburn, Prism (more than just MVVM), and the MVVM Light Toolkit by Laurent Bugnion.

In this recipe (and the following ones), we will use the MVVM Light Toolkit to enable MVVM in our projects: it's open, it's lightweight, it's extensible, and it's very easy to use with little to no learning curve. Instead of using project templates (delivered with the MVVM Light Toolkit), we will only use the base classes in these recipes, so as offer a better understanding of how things work and can be set up.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint