Reputation: 21
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
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
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