0

I have two projects configured in UWP and another is in WPF. Due to some reason, I can not ignore this architecture. Now I want to open a previously open UWP window once I will close WPF window.

James Z
  • 12,209
  • 10
  • 24
  • 44
Dharmendra Singh
  • 149
  • 2
  • 11
  • Possible duplicate of [Communication between UWP and Non UWP app](https://stackoverflow.com/questions/43182643/communication-between-uwp-and-non-uwp-app) – Andy Oct 04 '19 at 14:25
  • Hi, you can create a `Protocol` for a UWP app and evoke a UWP app with a URI when the WPF app is closed. Here is the [document](https://learn.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation) – Richard Zhang Oct 10 '19 at 06:31

2 Answers2

1

You can communicate between UWP and non-uwp apps using AppServices , this thread is talking about the same scenario .

Hope this helps. Thanks.

Noorul
  • 873
  • 2
  • 9
  • 26
  • 1
    Hi I am able to send uwp window in suspend state. Now WPF Window is opened. Now on the close of WPF window user, UWP Window(which is in suspended state) should resume.r u saying we can achieve using App service?If yes please explain or suggest a link. – Dharmendra Singh Oct 08 '19 at 11:57
0

I have achieved this by using RequestInfoForPackageAsync() API of windows.

  1. I have to save the UWP App package family name on the launch of the UWP app.(Use Package API for this) 2- Now from WPF call RequestInfoForPackageAsync and start the app. Then need to manage the start the event as required. If anyone know better way to handle this please share.
Dharmendra Singh
  • 149
  • 2
  • 11