Skip to content

Instantly share code, notes, and snippets.

@reddvid
Last active March 15, 2019 01:35
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 reddvid/3bba0e4f7c57ce5c1f4f152163d29b58 to your computer and use it in GitHub Desktop.
Save reddvid/3bba0e4f7c57ce5c1f4f152163d29b58 to your computer and use it in GitHub Desktop.
...
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