1 / 4

MVVM Design Pattern

MVVM Design Pattern. O verview of the MVVM pattern for Silverlight and WPF. What is MVVM?. Part of the M-V-* family of separated presentation patterns (MVC, MVP, etc.) Stands for “Model-View- ViewModel ” Adaptation of Fowler’s “Presentation Model” “ Linqua Franca” of WPF and Silverlight.

philyra
Download Presentation

MVVM Design Pattern

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MVVM Design Pattern Overview of the MVVM pattern forSilverlight and WPF

  2. What is MVVM? • Part of the M-V-* family of separated presentation patterns (MVC, MVP, etc.) • Stands for “Model-View-ViewModel” • Adaptation of Fowler’s “Presentation Model” • “Linqua Franca” of WPF and Silverlight

  3. What’s a “ViewModel”? • Is it a “View of the Model”? or … • A “Model of the View”? • I prefer Model of the View, or Model forthe View. • The VM is an abstraction of the state (bindings) and behavior (actions/commands) of the View.

  4. View Model as State Machine • “When I’m constructing a system, I prefer to think of the VM as a state machine with the View being a visualization of the current state.  The user interacts with the View, causing “messages” (actions/commands/bindings) to be sent to the VM.  The VM receives and delegates or interprets these messages, which may or may not result in state changes and may or may not result in domain model interaction.” – Rob Eisenberg (Caliburn, NHProf)

More Related