是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序 [英] Is there a possibility to start another App or Program from a Windows 8 Store App (C#)

查看:31
本文介绍了是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的 Windows 应用商店应用启动另一个应用或程序.例如,我的应用程序正在显示电子邮件,因此如果有人点击此类电子邮件,Outlook 应该会打开.这在App-Sandbox"中是否可行?

I want to start another App or Program from my Windows Store App. For example my App is showing emails, so if someone clicks on such an email Outlook should open. Is this possible in an "App-Sandbox"?

推荐答案

不可能只启动任意应用程序,但通过自定义协议激活,您可以启动处理该协议的应用程序,如果未安装 -操作系统会要求用户安装它.这意味着如果您可以在您的应用程序中定义自定义协议 - 您可以使用此协议从另一个应用程序启动它,假设没有其他应用程序注册来处理它.任何 XBOX Live 应用程序就是一个例子——如果你检查它们的清单文件——它们都处理自定义协议.

It is not possible to just launch an arbitrary application, but with custom protocol activation you can launch an app that handles that protocol and if it is not installed - the OS will ask the user to install it. It means that if you can define a custom protocol in your app - you can launch it from another app with this protocol assuming no other app registers to handle it. An example of that is any XBOX Live app - if you check their manifest files - they all handle custom protocols.

如果您的具体问题是关于按名称或位置启动特定应用程序,那么不,这是不可能的,但如果您知道要启动的应用程序处理的协议 - 您可以尝试使用它 - 请记住可能有其他应用程序处理该协议.

If your specific question is about launching a specific app by name or location then no, this is not possible, but if you know a protocol handled by the app you want to launch - you can try using that - just bear in mind that there might be other apps that handle that protocol.

这篇关于是否有可能从 Windows 8 商店应用程序 (C#) 启动另一个应用程序或程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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