Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Launching the UWP application from WPF
using BooksLib.Services;
using System;
using System.Threading.Tasks;
using Windows.System;
namespace DesktopBridgeSample.Services
{
public class LaunchProtocolService : ILaunchProtocolService
{
public async Task LaunchAppAsync(string protocol)
{
await Launcher.LaunchUriAsync(new Uri($"{protocol}://"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment