UWP 从 WPF 应用程序启动我的应用程序 [英] UWP to launch my application from WPF application

查看:33
本文介绍了UWP 从 WPF 应用程序启动我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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 应用程序启动我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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