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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:03:01+00:00 2026-06-16T13:03:01+00:00

I’m implementing a game in Silverlight that has many timers. I stop all these

  • 0

I’m implementing a game in Silverlight that has many timers. I stop all these timers each time I navigate from this page.

In some cases, when I navigate from the game page to menu page, the game is still running and I hear sounds of the game, although the timers are all stopped.

So is there a way to kill a WP7 page completely when navigating from it?

Thanks.

UPDATE:

the scenario is as follows:

1- The player starts the game.
2- When the game ends, the player is navigated to results page.
3- When the player is in results page and presses back key, it will be handled as follows:

    protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
    {
        e.Cancel = true;
        NavigationService.Navigate(new Uri("/Pages/MainMenu.xaml", UriKind.Relative));
    }

4- The problem is that the constructor of the game page is executed although I’m telling him to navigate to the main menu not to go back to the game page.

  • 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-06-16T13:03:02+00:00Added an answer on June 16, 2026 at 1:03 pm

    There is no way for you to “kill” a page. If you are doing a forward navigation, then the page will remain (and continue to run) in the background so that you may go back to it using the back button. If you are doing a back navigation, the page will be garbage-collected at some point (assuming you have unhooked all your events, disposed of any unmanaged resources, etc.)

    Update:

    So the first thing I need point out is that you are misleading the user here. They are pressing the back button, but instead a forward navigation is done. Not only will this confuse the user at that moment, but what happens when they are on the MainMenu page and press the back button? Do they go back to the Results page (that would be the last thing in the backstack)? But you’ve already taking a detour out of the backstack, so what the user remembers the road back being and what it ends up being is already different. This is the type of thing that could cause your submission to fail (5.2.4.1 – Back button: previous pages).

    As far as number 4 goes, navigating back to a page will not call the constructor. That will only be called when page is first created. A backwards or forwards navigation to that page, on the other hand, will call the OnNavigatedTo method, so check to see what work is being done there.

    Here is my recommendation to fix both problems: when the game ends and the user has been navigated to the Results page, remove the Game page from the backstack entirely using the NavigationService.RemoveBackEntry(). This will allow the page to be picked up by the garbage collector (assuming it doesn’t have any other objects holding a reference to it (see above)) AND will no longer be in the path the user takes when they press the back button. If the previous page is the MainMenu page (I’m assuming it is, based on the name), then your problem is solved. If it is not, it may be time to rethink your navigation path…

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) 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.