
MVVM
Get flash to fully experience Pearltrees
6: Advanced MVVM Scenarios
The previous chapter described how to implement the basic elements of the Model-View-ViewModel (MVVM) pattern by separating your application's user interface (UI), presentation logic, and business logic into three separate classes (the view, view model, and model), implementing the interactions between those classes (through data binding, commands, and data validation interfaces), and by implementing a strategy to handle construction and wire-up. Implementing the MVVM pattern using these basic elements will likely support many of the scenarios in your application. However, you may encounter more sophisticated scenarios that require the basic MVVM pattern to be extended or that require more advanced techniques to be applied. This is more likely to be true if your application is large or complex, but you may also encounter these scenarios in many smaller applications.In WPF, using the regular window control to launch child windows makes MVVM and separating a View concern from the ViewModel very difficult. The problem: The window control works nicely as a shell for your application, however, launching child windows is problematic because the window control cannot be defined in xaml unless as the root element. So, if you wanted to launch child windows inside a parent window, you lose the ability to declare these in xaml. This loss means you will not be able to bind to properties in your ViewModel from the view for the purpose of opening/closing a window.
Custom popup and windows in WPF the MVVM way
Tutorials
MVVM Communication among ViewModels
THE MODEL-VIEW-VIEWMODEL (MVVM) DESIGN PATTERN FOR WPF
MVVM Light Toolkit – Команды и сообщения | Rouslan Grabar on NET, SharePoint, SilverLight, WPF and other technology related topics
toolkit
I’ve been toying with some ideas for MVVM lately. Along the way I have been dragging some friends like Glenn Block and Ward Bell along for the ride. Now, normally its not so bad, but when I get an idea in my head to challenge everything I can be “interesting” to work with . These guys are great and I highly encourage you all to get your own personal Glenn and Ward bobble head dolls for your home.
Simple ViewModel Locator for MVVM: The Patients Have Left the Asylum - John Papa
< phone:PhoneApplicationPage x:Class = "ItemList.MainPage" xmlns:phone = "clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell = "clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:MVVM = "clr-namespace:ItemList.ViewModelLocator.Framework.Implementors.Silverlight.MVVM" mc:Ignorable = "d" FontFamily = "{StaticResource PhoneFontFamilyNormal}"

