从启动WPF应用程序的地铁应用程序(摄像头)应用程序、摄像头、地铁、WPF

2023-09-04 03:00:48 作者:此生老死花酒间

我有一个普通的.NET 4.0的WPF应用程序,它应该是在Windows 8.1平板电脑上运行。从这个应用程序,我想先从本地地铁摄像头的应用程序,如果它是可用的。

I have a ordinary .net 4 WPF application which is supposed to be run on a Windows 8.1 tablet. From this application I would like to start the native Metro camera app, if it is available.

从来就试图寻找答案,但它似乎需要一个Windows应用程序启动的地铁应用程序。

I´ve tried looking for answers, but it seems to require a Windows app to start metro apps.

那么,它甚至有可能?

感谢您:)

推荐答案

有一个看看这篇文章:http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/

基本上,你需要运行:

资源管理器外壳:AppsFolder \ Microsoft.MoCamera_cw5n1h2txyewy Microsoft.Camera

例如。用途:

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

我不知道,这将是非常可靠的还是面向未来的,但它适用于一切,我已经尝试过了!在Windows 8.1的机器

I'm not sure that this will be super reliable or future-proof, but it works on all of the Windows 8.1 machines that I have tried it on!