Last active
March 15, 2019 01:35
-
-
Save reddvid/3bba0e4f7c57ce5c1f4f152163d29b58 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
... | |
if (rootFrame == null) | |
{ | |
// Create a Frame to act as the navigation context and navigate to the first page | |
rootFrame = new Frame(); | |
rootFrame.NavigationFailed += OnNavigationFailed; | |
rootFrame.Navigated += OnNavigated; | |
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) | |
{ | |
//TODO: Load state from previously suspended application | |
} | |
// Place the frame in the current Window | |
Window.Current.Content = rootFrame; | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment