Alan Mendelevich
Alan Mendelevich

Reputation: 3611

WPF and ToolboxItem(false)

I'm setting ToolboxItem(false) attribute on couple of classes in my control library to prevent the from being added to Toolbox. This attribute works perfectly well with ASP.NET designer but with WPF designer it seems to have no effect.

Is there some other way to achieve this with WPF or is just unsupported?

Upvotes: 4

Views: 1441

Answers (1)

Alan Mendelevich
Alan Mendelevich

Reputation: 3611

Found the answer myself. You should use ToolboxBrowsable(false) attribute from Microsoft.Windows.Design namespace rather than ToolboxItem(false) from System.ComponentModel.

Upvotes: 5

Related Questions