Cannot add a page to my project
visual-studio-2012, winforms, wpf
Solution
Edit the proj file by hand and add ProjectTypeGuids for C# and WPF. It should be something like this:
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
After the project is reloaded you should have normal options for a WPF project type.
More info about ProjectTypeGuids here.
Problem
One of my projects in Visual Studio is a WPF project. I have the default files which are created plus 2 classes which I've added and a couple of folders. The issue I have is, when I try to add a Window to my View folder, I can't as I don't have the option of Window (or page for that matter). As you can see, for some reason and despite my application being created as a WPF project it now thinks it's a WinForms project. How do I revert/change it from WinForms to a WPF project? EDIT Please note, I am using Visual Studio 2012 Premium. If I add a new WPF project, I do get the options of Page/Window etc, so this fault is project specific. Based upon the comments, this is the screen I get when I click on Add New Item (sorry I can't fit in the entire list) And this is the view of the WPF menu