问题
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.
来源:https://stackoverflow.com/questions/2799262/how-to-add-my-custom-wpf-control-to-the-toolbox-by-using-the-wpf-toolbox-control