Windows 8启动“地铁"桌面应用程序中的应用程序? [英] Windows 8 start "metro" app from desktop app?

查看:63
本文介绍了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:

  1. 按Windows + R
  2. 输入 regedit
  3. 导航到 HKEY_CLASSES_ROOT \ Extensions \ ContractId \ Windows.Protocol \ PackageId
  4. 找到您的应用程序的子项(例如, AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp )
  5. 在该子项中,转到 ActivatableClassId_some长名称_ \ CustomProperties
  6. Name 值将告诉您协议名称.
  1. Press Windows+R
  2. Type regedit
  3. Navigate to HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId
  4. Find the subkey for your app (eg, AMZNMobileLLC.KindleforWindows8_1.1.0.0_neutral__stfe6vwa9jnbp)
  5. Within that subkey, go to ActivatableClassId_some long name_\CustomProperties
  6. The Name value will tell you the protocol name.

然后可以将 名称://传递给 Process.Start().

(我回答了这个 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆