Up until now, I had no problem with usercontrols not showing in the toolbox. Build the project and it just shows up. Then today not working. After a search I went through following but still no joy.
- Tools > Options > Windows Forms Designer > General : AutoToolboxPopulate
- Tools > Options > Text Editor > XMAL > Misc : AutoToolboxPopulate
- Reset the VS settings to default
So after a few hours of messing around trying to get it to work with no success, I created a new WPF windows project accepting the default name and added a usercontrol.
Built the project and the user control appeared as it always had.
I then thought that something might be wrong with my project or wpf window file.
Removed the project, created a new one and added a new control.
Built the project but it didnt work.
The only thing I did different was choose a name for the project, which I included a space in the name "WPF Application".
Removed the project again and created a new one again called "WPFApplication" without the space and added a user control. Built it and the user control showed up.
If you want usercontrols to show up automatically in the toolbox on build, dont use spaces in the project name. Hopefully this post save's someone else a ton of wasted time.