O'Reilly logo

Windows Presentation Foundation 4.5 Cookbook by Pavel Yosifovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a tabbed user interface

The tabbed user interface has been popular in recent years, due to its screen real estate savings and ease of use. It replaces the older, MDI (Multiple Document Interface) model that exists within the Windows UI subsystem and popularized by frameworks such as MFC (Microsoft Foundation Classes). Visual Studio itself is a good example of tabbed interface usage (although Visual Studio can work in MDI mode as well). In this recipe, we'll see the basics of a tabbed user interface. Check out the There's more... section for a more realistic way of managing tabs.

Getting ready

Make sure Visual Studio is up and running.

How to do it...

We'll create a bare-bones application showing two simple tabs:

  1. Create a new WPF application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required