WHAT’S IN THIS CHAPTER?
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
Because the framework for building Windows Store apps is based on XAML, many existing techniques and design patterns for solving problems are also applicable on the new platform. Just as architects use different tools and techniques depending on what they’re designing, each software project may require a different design to meet the known requirements and constraints. Although there isn’t a single solution to every challenge, sometimes, best practices provide guidance to make solving the challenge easier. This chapter outlines best practices to reduce complexity and increase flexibility of your apps.
Model-View-ViewModel (MVVM) is a design pattern primarily used with XAML-based applications, such as Windows Presentation Foundation (WPF), Silverlight, and Windows Phone applications. It has strong similarities with Model-View-Controller (MVC) and Model-View-Presenter (MVP), but it’s designed specifically for XAML applications. It consists of three elements: