UWP allows for the definition of "custom vpn plugins" by adding the "networkingVpnProvider" Capability. When one goes to "Network & Internet" -> "VPN" and clicks "connect" the application containing the background task will launch. If that application has a UI - one can also view the UI by starting the application from start -> "name of app".
That's all great - what I'd like to do since this is a VPN I'd like the UI to pop up when the user clicks the "Connect" button. I can't find the right API to pop up the "MainPage" associated with a background task. I also can't pass a pass a reference into the background task since it's windows itself that's starting it...
Hopefully this is doable. Thanks in advance for any help.