简体   繁体   中英

c#: How to popup uwp project in winform

I want to popup a UWP project when I click a button in a Winform project
I tried to pop up WPF, but it didn't work in UWP. In WinForm I can't add a reference to the UWP project, so I don't know what to do. The amount of information on UWP is small, so it is difficult to search.

How to popup UWP in Winform?

If you want to launch a UWP app from a WinForms app, you will need to register a Protocol for your UWP app first. It will be used as a URI scheme name for your UWP app. Then you could call the Launcher.LaunchUriAsync Method in your WinForms app to launch the UWP app.

You could also refer to Nico's reply here: How to launch UWP app from windows forms using C#

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM