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.
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 ...