Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6740991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:40:20+00:00 2026-05-26T11:40:20+00:00

I have an application which displays a disclaimer page when it is first run.

  • 0

I have an application which displays a disclaimer page when it is first run. Once you select Accept or Deny you never see the page again.

However, when you press the back key attempting to close the application after the first run, you go back to the disclaimer page, then if you hit it again, back to the main page and then again to exit.

This only happens the first time the application is run, but I would like to have the application ignore the disclaimer page when the back key is pressed and exit the application.

Other than forcing an unhandled exception error to close the app, are there any other options?

Thanks in advance.

Solution: Add the below NavigationService.RemoveBackEntry(); in my main page.

private void PhoneApplicationPage_Loaded_1(object sender, RoutedEventArgs e)
{
    NavigationService.RemoveBackEntry();
    NavigationService.RemoveBackEntry();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:40:21+00:00Added an answer on May 26, 2026 at 11:40 am

    I am sure there is a more elegant way to do it, but I was in a hurry, so I implemented it in a following way.

    I have a static global enum that stores the last page I was on. Assuming you have pages called pgDisclaimer and pgMain.

    In the OnNavigatedTo event of the pgDisclaimer page, check to see where the control came from. If it came from pgMain, just execute NavigationService.GoBack() and you’ll be out of the application and the user will never actually see pgDisclaimer page (not even a flicker).

    Edit: Found the more elegant way. In Mango, you can use the horribly named NavigationService.RemoveBackEntry() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Web application (ASP.NET) which displays in some page links to miscellaneous
We have an application which, as its first UI action, displays a modal JDialog
I have an application which displays properties dialogs for various GUI-accessible objects. Because there
I have an XBAP WPF application which displays various pages inside of a Frame.
I have a silverlight application which reads data from a db and displays them
I have an Application which displays a Chart, which is filled with data from
I have a monitoring application which via gui displays that status of a number
I have an application which displays a collection of objects in rows, one object
I have a Delphi application which displays an image using a TImage. The location
We have a swing application which displays a lot of rectangles. We use Rectangle2D.double

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.