UWP 从 WPF 应用程序启动我的应用程序

编程入门 行业动态 更新时间:2024-10-23 21:28:20
本文介绍了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 应用程序启动我的应用程序

本文发布于:2023-06-01 10:25:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/412980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   UWP   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!