Skip to content

Instantly share code, notes, and snippets.

Created October 2, 2018 15:29
What would you like to do?
Protocol activation of the UWP app
protected override void OnActivated(IActivatedEventArgs args)
if (args.Kind == ActivationKind.Protocol)
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
rootFrame = new Frame();
Window.Current.Content = rootFrame;
rootFrame.Navigate(typeof(MainPage), "protocol activated");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment