Start metro app (camera) from WPF app

I have a regular WPF.net 4 application that is supposed to run on a Windows 8.1 tablet. From this app, I would like to launch the Metro Metro app if available.

I've tried looking for answers but it seems like a Windows app is required to run metro apps.

So is it possible?

Thank:)

+2


source to share


2 answers


Take a look at this article: http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/

Basically, you need to run:

explorer shell:AppsFolder\Microsoft.MoCamera_cw5n1h2txyewy!Microsoft.Camera



eg. Using:

Process.Start("explorer", @"shell:AppsFolder\Microsoft.MoCamera_cw5n1h2txyewy!Microsoft.Camera");

      

I'm not sure if this will be robust or reliable, but it works on every Windows 8.1 machine I've tried!

+6


source


There is a way to open metro apps (Windows Store apps) from the desktop, but this app requires an associated protocol. Go to Control Panel> Default Programs> Associate Protocol ... (something like that) and check the protocols associated with each application.

Unfortunately, the default camera app doesn't seem to have any protocol.



The .exe file for the camera app is located in the C: \ Windows \ Camera folder for Windows 8.1 (I'm not sure if it was there in Windows 8), but double-click it not to Do anything. I guess only Windows knows how to start it.

Here you can check the launch of applications using the protocol: Open IE or any other browser and enter: ms-windows-store: / in the address bar.

+2


source







All Articles