Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created October 2, 2018 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/e61117e855d81262d7153e4bd7d9f447 to your computer and use it in GitHub Desktop.
Save christiannagel/e61117e855d81262d7153e4bd7d9f447 to your computer and use it in GitHub Desktop.
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