How to add my custom WPF control to the ToolBox by

2019-07-31 10:40发布

问题:

I have a custom control packed as myControl.dll. How to install it in VS2010 by using the WPF ToolBox Control template? I do not want to use the "Choose Toolbox..." or "Drag and Drop" techniques.

回答1:

I wrote a thorough tutorial article on the topic:

Visual Studio Toolbox Control Integration

The "Choose Items..." is easiest choice for manual installation and is discussed in the article as well.

You can also bundle the control in VSI, VSIX or VSPackage, use VS Automation Object Model (DTE) or existing package pre-installed with VS2010 and newer called Toolbox Controls Installer (TCI).

Drag and drop does not work for VS Toolbox as far as I know.