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.
Within ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.