Search code examples
windows-phone-7navigationtombstoning

Navigation & Tombstoning - Best Practices


I'm just learning about how to navigate between pages and tombstoning. I'm wondering if anyone can point me to some good examples that not only show me the basics of how to use Navigation properly but also good examples of more complicated and advanced navigation issues?

  • Some questions I have revolve around memory leaks when navigating to other pages and navigating back?
  • Is there a close page call, once the page has done its job (I don't want an instance of it hanging around after I'm done with it)?
  • Another question is how to I maintain state if the app gets tombstoned (still trying to wrap my head around that term).

Thanks!


Solution

  • There's no close page call, the OS automatically closes pages when they're backed out and releases used memory (so there should be no leaks here).

    Some resources here that cover tombstoning and advanced navigation concepts.

    Understanding the Windows Phone Application Execution Model, Tombstoning, Launcher and Choosers, and Few More Things That Are on the Way – Part 1, Part 2, Part 3

    Introducing the concept of “Places” - Peter Torr's Blog

    Redirecting an initial navigation - Peter Torr's Blog