Windows 8启动“地铁"桌面应用程序中的应用程序? [英] Windows 8 start "metro" app from desktop app?
本文介绍了Windows 8启动“地铁"桌面应用程序中的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以从.net中的桌面应用程序启动地铁"应用程序吗?
Is there any way to start a "Metro" app from a desktop app in .net?
推荐答案
所有现代UI应用程序都具有与其相关联的URL协议,可用于启动该应用程序.
您可以找到特定应用的协议,如下所示:
All Modern UI apps have a URL protocol associated with them which can be used to launch the app.
You can find find the protocol for a specific app like this:
- 按Windows + R
- 输入
regedit
- 导航到
HKEY_CLASSES_ROOT \ Extensions \ ContractId \ Windows.Protocol \ PackageId
- 找到您的应用程序的子项(例如,
AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp
) - 在该子项中,转到
ActivatableClassId_some长名称_ \ CustomProperties
-
Name
值将告诉您协议名称.
- Press Windows+R
- Type
regedit
- Navigate to
HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId
- Find the subkey for your app (eg,
AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp
) - Within that subkey, go to
ActivatableClassId_some long name_\CustomProperties
- The
Name
value will tell you the protocol name.
然后可以将 名称://
传递给 Process.Start()
.
(我回答了这个 查看全文