I have a WPF
application where I want to handle file activation. I found solutions where adding specific values to the registry solves the issue. The problem is that the final app should be a UWP
app and I'm using the desktop bridge to do this. If the app is running as UWP
, it can't reach the registry to set these specific values. Is there any other way to handle file activation without using the registry?
I also tried to create a UWP
project, because in UWP is very easy to handle file activation and to launch somehow my WPF
application from this project and pass the content of the file.
I tried the Launcher.LaunchUriAsync(...)
, but I hadn't really find an example how to build the URI. If this way is viable can you provide me an example?
Then I also tried to communicate by Windows.ApplicationModel.AppService
but it's also needed to start the app if it's not running. So this isn't a good way.
I'm open for any other approaches, too.