9. Model-View-ViewModel (MVVM)

Model-View-ViewModel (MVVM) is a proven pattern used in applications that support data-binding. Introduced in 2005 to support Windows Presentation Foundation (WPF)1 apps, it was popularized by Silverlight and has grown to encompass a variety of platforms, including XAML and JavaScript. MVVM was based on even older design patterns that date back to the late 1970s.2 Windows Store apps written with C# and XAML are particularly suited to MVVM because of the data-binding support XAML provides. In fact, most of the store templates and examples support the concept of MVVM, to varying degrees. Therefore, you must understand MVVM when you are developing WinRT apps.

1Introduction to Model/View/ViewModel pattern for building ...

Get Programming the Windows Runtime by Example: A Comprehensive Guide to WinRT with Examples in C# and XAML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.