Skip to content

Instantly share code, notes, and snippets.

@reddvid
Created March 16, 2019 09:55
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/6c137ad43c532a8b5933928a8bce9117 to your computer and use it in GitHub Desktop.
Save reddvid/6c137ad43c532a8b5933928a8bce9117 to your computer and use it in GitHub Desktop.
rootFrame.PointerPressed += RootFrame_PointerPressed;
SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested;
// Optional code to show back button on title bar
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
rootFrame.CanGoBack ?
AppViewBackButtonVisibility.Visible :
AppViewBackButtonVisibility.Collapsed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment