Adding tabs

As shown in the requirements section earlier, in this chapter, our Northwind application needs to support a tabbed display. MVVM greatly simplifies the creating and managing of tabs as you can have the binding system map views to view models. This makes adding a tabbed interface to our UI a simple matter of using the Hierarchical View Model approach along with some basic OOD techniques.


Hierarchical View Model will be discussed in detail in Chapter 6, Hierarchical View Model and IoC.

To accomplish this, follow the steps listed here:

  1. Add a new class called ToolViewModel.cs to the Northwind.ViewModel project, and update the code as follows:
    namespace Northwind.ViewModel { public class ToolViewModel { public string DisplayName { get; ...

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.