I want to make a windowed app in XAML on Windows 8 in C++, but the only XAML options as far as I can tell are Metro (casual) apps (full screen). However, my app is not a casual app, and as such I want it to be a desktop (windowed) app. Also, I would like Window 7 users who hate Windows 8 to be able to use it.
Is there any way? Changing <Page ... </Page> to <Window ... </Window> doesn’t seem to fix the issue (at least for me). I know Visual Studio 2012 can do Windowed XAML C# as I opened a project from a while back and it runs windowed.
Is this just a project setting or what?
EDIT: It’s not a project setting; you’re attempting something that was never supported. C++ is not a WPF language. You’ll need to use C# or Visual Basic to build a WPF Desktop app, which is supported both in VS2012 and VS2010. Sorry I missed the fact that you’re working in C++.
(C# should not be a steep learning curve, if you haven’t used it before and you’re used to C++. And you can port C++ over in CLR libraries if needed.)
Probably, it’s just a project setting, and it depends on the version of Visual Studio you have. I think the Express versions of Visual Studio 2012 only permit the creation of “Metro-style” apps, while the Professional, Premier, or Ultimate editions have desktop (WPF or Silverlight) target projects.
To be sure, start up a new solution and see if you’re given the choice. If not, you probably don’t have the right version of VS2012. Be sure to check down the treeview of project types to make sure that you haven’t missed one. If it’s really the Professional version of VS2012, it’ll be in there or it’ll be downloadable.