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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.