O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

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 the User Control

We start by creating a User Control class that encapsulates the user interface for our tool window and the processing logic for the extension. Add a Custom Tool Window project item to the project; call it MyToolWindow.

The first thing to note is that the project item has already created the shell of our user control for us. After we added this project item, the design surface of the user control is loaded and ready to go (see Figure 15.8). As we noted before, the user control is a XAML-based user interface. If you need to familiarize yourself with Windows Presentation Foundation (WPF)/XAML development concepts, you may want to skip ahead and read Chapter 21 or Chapter 23.

FIGURE 15.8 The default user control.

Within ...

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