How to add my custom WPF control to the ToolBox by using the WPF ToolBox Control template

柔情痞子 提交于 2019-12-11 05:59:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!