views:

11

answers:

1

I have implemented a set of ASP.NET web custom controls and added these to my Visual Studio 2008 Toolbox. I also created some user item templates, which are basically ASP.Net Webforms pages with some preconfigurations.

I would now like to assign each item template a subset of my custom controls that shall be available in the toolbox while editing a file created from the template. What is the best way to achieve this?

A: 

It seems like there is no established solution to this problem. Thus, i went for an add-in which hooks in when the user switches between document windows and than manipulates the toolbox using EnvDTE.

However, I ran into weird problems using the ToolBox API. Please see my other post: http://stackoverflow.com/questions/3606821/weird-behavior-of-vs-toolbox

jfs