Preventing WPF Controls from Being Displayed in the Visual Studio Toolbox

In other technologies such as Windows Forms and Web Forms, you can adorn a class with the [ToolboxItem(false)] attribute and it will not appear in the Visual Studio Toolbox.


In Windows Presentation Foundation (WPF) you use the [ToolboxBrowsable(false)] attribute instead. This attribute is found in the Microsoft.Windows.Design namespace in the Microsoft.Windows.Design.dll assembly.


Best Regards,
Kevin McNeish
.NET MVP for past seven years
INETA Speaker
Chief Architect,  MM .NET Application Framework
www.oakleafsd.com

One thought on “Preventing WPF Controls from Being Displayed in the Visual Studio Toolbox”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>