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 6096829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:58:22+00:00 2026-05-23T12:58:22+00:00

NOTICE: There has been some confusion, so let me clarify that I’m asking how

  • 0

NOTICE: There has been some confusion, so let me clarify that I’m asking how to achieve something in Windows Phone 7, by comparing it to similar functionality in Android.

Question:

Learning about navigation between pages in Windows Phone 7, I implemented two-way navigation between two pages, A and B, so you can navigate from page A to B and B to A.

For illustrative purposes, let’s say I navigate like this: A->B->A->B

When backing out of the application I’ll be forced through each of the pages again, where ideally I only want to go through A once, and/or B once and then exit the application.

In Android you can achieve that by setting the noHistory attribute to “true” on the activity, but what about WP7?

UPDATE: Using RemoveBackEntry as suggested by keyboardP I achieved what I was looking for. For anyone else interested, this is the code I used:

private void button1_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/FirstPage.xaml", UriKind.Relative));
            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-23T12:58:22+00:00Added an answer on May 23, 2026 at 12:58 pm

    In 7.0, there’s no method that removes any pages from the navigation stack. However, there’s a recipe you can download that will help deal with circular navigation. You can download it the Non-Linear Navigation Service from here and it’s based on this article.

    I don’t know if that recipe is compatible with 7.1 (Mango), but there is a new method introduced in Mango within the NavigationService called RemoveBackEntry. You could perform some calculations to figure out how many times to remove the last entry so that the user ends up on the first page when they click the back button.

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

Sidebar

Related Questions

I notice that there is some gap after my table. See the following snapshot:
I notice that StackOverflow has a views count for each question and that these
I notice that there's frequently an aspnet_client folder under the standard IIS web folder
I notice that there is getWebApplicationContext in org.springframework.web.servlet.mvc.AbstractController . This means that spring programmers
When I defragment my XP machine I notice that there is a block of
When restoring a SQL Server Database, I notice that there are 3 different Recovery
I was checking out the Tweet# API, and notice that there are 2 ways
I notice this question has been asked a few times but I don't really
I've been developing iPhone apps for a while now and something that's always peeved
I have some code I inherited which has a lot of warnings that I

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.