Monday, December 31, 2012

A WP7 page still running after navigating from

A WP7 page still running after navigating from

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.

Answers & Comments...

Answer: 1

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.)

by : Joel Sheahttp://stackoverflow.com/users/171622




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog