Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > Adding WPF controls from referenced projects to toolbox
 

Adding WPF controls from referenced projects to toolbox

I have developed a WPF usercontrol. I want to have it in the toolbox when I use the project or dll as a reference in another project. Previously with Windows Forms library. There was an attribute ToolBoxItemAttribute which whenever it is added to a control, the control will be added in to the toolbox, automatically. I googled and found another attribute for WPF which is ToolboxBrowsableAttribute, but it had no effect. I wish to know how can I solve this problem.

I should note that I do not want to add the control manually by "Choose Items ..." or toolbox's context menu. I want it be built based on the project references.
MReza J  Sunday, October 04, 2009 3:00 PM
Hi @MReza J

The feature you are requesting (automatic population of the toolbox with UserControls that are referenced in your solution) is not available for WPF or Silverlight projects in Visual Studio 2008. Only choose Items or Installer-based means of getting items onto the Toolbox are supported.

It is, however, supported in the new Visual Studio 2010 WPF and Silverlight Designer, which is currently available in Beta 1 form.
http://www.microsoft.com/visualstudio/en-us/try/default.mspx#visual-studio-2010-beta

You can sign up to be notified when the next beta of Visual Studio 2010 ships at this site:
http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx

Thanks
Mark
Mark Wilson-Thomas - Program Team - WPF & SL Designer for Visual Studio - posts are provided 'as-is'
Mark Wilson-Thomas  Tuesday, October 13, 2009 5:34 PM

You can use google to search for other answers

Custom Search

More Threads

• What is the lastest drop and when is the next one scheduled?
• event keypress
• Cannot drag any control onto the design surface
• No xaml designer in vs2008
• filtering properties at design-time
• How to show element sizes in WPF Designer?
• Get the WindowsFormsHost mouseclick position in WPF
• Mimick Outlook Address Cards View
• WPF Data Binding to a derived entity type
• WPD Driver Creation