Need a new acronym for your resume? The Model-View-ViewModel (MVVM) pattern is a variation of Model-View-Presenter (MVP) that is tailored for modern UI development platforms where the View is the responsibility of a designer rather than the developer. This has lead to the pattern becoming very popular with WPF and Silverlight application developers lately. This presentation will walk you through creating a business application from scratch in both WPF and Silverlight using the MVVM pattern.
7. Model – View – Controller
• Regarded as the first pattern to
seperate UI, Data & Logic concerns
• Controller handles all logic,
including Mouse & Keyboard events
11. Presentation Model
• Published by Martin Fowler in 2004
• View is a rendering of the
Presentation Model
12. Presentation Model
“Probably the most annoying part of Presentation
Model is the synchronization between Presentation
Model and view. It’s simple code to write, but I always
like to minimize this kind of boring repetitive code.
Ideally some kind of framework could handle this,
which I’m hoping will happen someday with
technologies like .NET’s data binding.”
– Martin Fowler
35. Sources
• WPF Apps With The Model-View-ViewModel Design Pattern – Josh Smith
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
• Model-View-ViewModel In Silverlight 2 Apps – Shawn Wildermuth
http://msdn.microsoft.com/en-us/magazine/dd458800.aspx
• ViewModel Pattern in Silverlight using Behaviors – Nikhil Kothari
http://www.nikhilk.net/Silverlight-ViewModel-Pattern.aspx
• Using RoutedCommands with a ViewModel in WPF – Josh Smith
http://www.codeproject.com/KB/WPF/VMCommanding.aspx
• Presentation Model – Martin Fowler
http://martinfowler.com/eaaDev/PresentationModel.html
36.
37. THANKS!!
Matt Casto
mattcasto@gmail.com
http://twitter.com/mattcasto