I want to create an app that runs in desktop mode when installing in Windows 7 and runs in metro mode when installing in Windows 8 (like google chrome).

I have Visual Studio 2013 and I can create apps than run in desktop mode or metro mode, but not both modes

In any case, thanks

有帮助吗?

解决方案

Unfortunately that is not possible by designing one application. You need to create two different application and through the setup, understand which version the operating system has and install the corresponding version. Although you can take advantage of Portable Libraries (See Cross-Platform Development with the .NET Framework) to write most of your codes and then write the UI separately for each environment. The easiest way might be to design your application based on MVVM and then almost you need to write your Views twice one for Metro style and one for WPF application although the codes would be quite similar.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top