Ilya Sandler
Ilya Sandler

Reputation: 21

In WPF project I don't see my user control in toolbox

I added my User Control (dll-file) as reference in new WPF Project, but I can't see this control in Toolbox. What should I do to use my user control?

Upvotes: 0

Views: 1184

Answers (2)

JohnMcC
JohnMcC

Reputation: 661

Does your control have a parameterless constructor?

I had this problem when attempting to use a WPF control written by another member of my team. The only constructor was one with parameters. When I added a new constructor with no parameters the control appeared in the Toolbox.

Upvotes: 0

Josh L.
Josh L.

Reputation: 454

Do you have this setting to true?

Tools > Options > Windows Forms Designer > General : AutoToolboxPopulate

If you do, you could also try this after building/rebuilding your user control project: Right click Toolbox > Choose Items... > Browse > UserControl.dll

Upvotes: 2

Related Questions