我有一个 Windows 商店应用,我想运行(如果没有运行)或扩展(如果没有扩展)我的另一个用 WPF 编写的应用.
I have a Windows store app I want to run (if not running) or expand (if not expanded) of another of my app written in WPF.
通过 Process.Start() 我做不到.告诉我,这能做到吗?感谢您的帮助!
Through The Process.Start() I could not do. Tell me, can this be done? Thanks for the help!
推荐答案要从另一个应用启动 UWP 应用,您可以使用深层链接.
To launch an UWP app from another app, you could make use of deep linking.
这里是一篇很好的文章,详细描述了如何做到这一点
Here is a great article describing exactly how to do that
总而言之,您需要添加一个协议声明(本质上是一个带有自定义方案的 URL),处理激活事件,然后您可以通过从其他应用程序导航到该 URL 来启动该应用程序.
In summary, you need to add a protocol declaration (essentially a URL with a custom scheme), handle the activation event and then you can launch that app by navigating to that URL from your other application.
更多推荐
UWP 从 WPF 应用程序启动我的应用程序
发布评论