我们如何从WPF应用程序打开UWP应用程序实例? [英] How can we open a UWP application instance from WPF application?

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

问题描述

我想从WPF应用程序打开Office Lens(来自Microsoft商店的UWP)应用程序并从中扫描名片。然后,无论发现什么信息(姓名,电话,电子邮件等)都应该返回到WPF应用程序内。

I want to open the Office Lens(UWP from Microsoft store) app from the WPF app and scan business card from it. Then whatever the information (Name, Phone, Email etc) found should return inside the WPF app.

或者如果不可能,那么只需在用户扫描业务时打开Office Lens应用程序的实例它应该在OneNote中存储信息(Office Lens应用程序允许在OneNote,Word,OneDrive中存储数据)。之后我们将从本地存储(OneNote,Word,OneDrive)中检索信息

Or if it is not possible then just open the instance of Office Lens app when user Scan Business Card it should store information in OneNote (Office Lens app allow to store data in OneNote, Word, OneDrive) after reading. And after we will retrieve information from that local storage (OneNote, Word, OneDrive).

如果可以通过这两个计划实现这一点,请分享您的想法。

Please share your ideas if it is possible to achieve this by these two plans.

我的主要动机是在我的应用程序(WPF)上获取名片信息(即姓名,电话,电子邮件等)。

My main motive is to get the Business Card Information (ie Name, Phone, Email etc) on my App (WPF).

谢谢,

Ashish Kosti

Ashish Kosti

推荐答案



嗨  Ashish Kosti,



>>我想打开Office Lens(UWP)来自Microsoft商店)应用程序来自WPF应用程序并从中扫描名片。然后,无论发现什么信息(姓名,电话,电子邮件等)都应该返回到WPF
应用程序内。




不幸的是,我们无法用WPF实现这个想法。 



>>或者如果不可能,那么只需在用户扫描名片时打开Office Lens应用程序的实例,它应该将信息存储在OneNote中(Office Lens应用程序)允许在OneNote,Word,OneDrive中存储数据
。之后我们将从本地存储中检索信息(OneNote,Word,OneDrive)。

$


您可以使用桌面应用程序中的一些UWP功能(我不熟悉UWP,这只是一个参考)打开Office Lens应用程序(UWP App)的实例。



请参考以下文章。如果您对此有任何疑问,可以开始新的帖子并将其发布到

UWP论坛(开发通用Windows应用程序)
获得合适的帮助。



使用现代UWP组件扩展桌面应用程序



$
您可以参考 开发OneNote的OneNote API 在不同平台上。



以下链接供您参考。



< a href ="https://stackoverflow.com/questions/44251405 /如何成功连接到onenote-api-using-c-sharp"> 如何建立连接成功使用c#到OneNote api
$



此外,如果您可以通过将有用的帖子标记为答案来关闭该主题,将不胜感激。如果他们遇到类似问题,这将有助于其他成员快速找到解决方案。如果您的
有新问题,您可以开始新的帖子。




b $ b最好的问候,



Yong Lu

Hi  Ashish Kosti,

>>I want to open the Office Lens(UWP from Microsoft store) app from the WPF app and scan business card from it. Then whatever the information (Name, Phone, Email etc) found should return inside the WPF app.

Unfortunately, We can't implement this idea with WPF. 

>>Or if it is not possible then just open the instance of Office Lens app when user Scan Business Card it should store information in OneNote (Office Lens app allow to store data in OneNote, Word, OneDrive) after reading. And after we will retrieve information from that local storage (OneNote, Word, OneDrive).

You may can use some UWP feature in desktop applications(I am not familiar with UWP, this is just a reference) to open the instance of Office Lens app(UWP App).

Please refer the following article. If you have any question about this, you can start a new thread and post it to the UWP forum(Developing Universal Windows apps) for getting the suitable help.

Extend your desktop application with modern UWP components


You can refer theOneNote API to develop OneNote on different platforms.

The following link for your reference.

how to make a successful connection to OneNote api using c#


Besides, It would be appreciated if you could close the thread by marking helpful posts as an answer. This will help other members to find the solution quickly if they have faced the similar issue. If you have a new question you can start a new thread.


Best Regards,

Yong Lu


这篇关于我们如何从WPF应用程序打开UWP应用程序实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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