Beispiel #1
0
        /// <summary>
        /// Gets called when the user presses the back button.
        /// </summary>
        private void App_BackRequested(object sender, BackRequestedEventArgs e)
        {
            Frame frame = Window.Current.Content as Frame;

            if (frame.Content is NavigationPage)
            {
                NavigationPage page = frame.Content as NavigationPage;
                page.BackRequested();
                e.Handled = true;
                return;
            }
            if (frame != null && frame.CanGoBack)
            {
                frame.GoBack();
            }
            e.Handled = true;
        }