MVVM Pattern in WPF
MVVM Pattern in WPF
MVVM Pattern in WPF
A Little Background
John Blumenauer Started with .NET 1.0 Works at Metrico Wireless Enjoys talking and learning about .NET
View
UI controls that display things
ViewModel
UI-friendly objects implement UI-specific interfaces Stores the UI data and state Application code works with VM objects, not UI
ViewModel
DataModel
Data Access
Benefits
Great Separation Simple Unit Testing UI Design and Workflow UI can be Easily Re-Skinned
Demo/Sample Code
Summary
DMVVM = DataModel-View-ViewModel Databinding is Key. View is not attached to logic, only ViewModel ViewModel is an Abstraction of a View.
Related Links
John Gossman Tales from the Smart Client http://blogs.msdn.com/johngossman Dan Creviers Blog http://blogs.msdn.com/dancre/archive/2006/07/ 23/676272.aspx Josh Smith Inside XamSalesManager http://community.infragistics.com/articles/appli cation-design/inside-xamsalesmanager3.aspx#mod The Orbifold http://www.orbifold.net/default/?p=550