Chapter 6. Northwind—h;Hierarchical View Model and IoC

By Ryan Vice

In this chapter, we will explore the power of using the Hierarchical View Model approach for building XAML applications. We will use this approach to add the ability to show order details in our application. As we begin to add this functionality, we will take some time to reconsider our design, and look at using an IoC (Inversion of Control) framework to improve our productivity.

Adding orders to customer details

Let's update Northwind to show the orders for each customer in the CustomerDetails.xaml view as shown in the following screenshot:

Adding orders to customer details

The approach we are going to use here ...

Get MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF 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.