Created
October 13, 2018 09:34
-
-
Save andy51002000/7265772898d3698357671ffa8aa2bb04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnActivated(IActivatedEventArgs args) | |
{ | |
Frame rootFrame=null; | |
if (Window.Current.Content != null) | |
{ | |
rootFrame = Window.Current.Content as Frame; | |
} | |
if (rootFrame == null) | |
{ | |
// Create a Frame to act as the navigation context and navigate to the first page | |
rootFrame = new Frame(); | |
Window.Current.Content = rootFrame; | |
} | |
var protocolArgs = args as ProtocolActivatedEventArgs; | |
rootFrame.Navigate(typeof(Views.ListPhotos), protocolArgs.Uri.Query); | |
// Ensure the current window is active | |
Window.Current.Activate(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment