O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a basic MVVM application

Applies to Silverlight 3, 4, 5 and WP7

Before we can start with MVVM, the concepts have to be explained. So we're going to start from scratch, assuming you have no knowledge of MVVM, and you're not using any MVVM-enabling framework or library.

In this recipe, you'll learn about the basic concepts of the MVVM pattern, and you'll see how easy it is to get a bare-bones MVVM application up and running.

Getting ready

The first question that pops up when talking about Model-View-ViewModel is typically: Why would you want to use it? The logical answer to that question would be: separation of concerns, which in turn leads to better testability and code maintainability.

But besides that, another important advantage is that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required