In Visual Studio 2010, depending on the project type you get different options when you want to add new items to a project. If you have created a class library and later you figure out that you want to add WPF custom controls, you will need to change the project so that it supports this functionality.

Changing the project type is an easy task. You need to open up the .csproj file in a text editor and add the following tag under the <PropertyGroup> element: