WP7 recovers from Tombstone and returns to the page

Is there a good / elegant way to return to the page the user was on when recovering from a burial? I'm not sure if my application or its method works, but I always return to the main page.

My application is configured with a home page with Pivot Control, and several Pivot Items will go to new pages. My Naigation looks something like this if that makes sense:

PivotItem1 → PageA
PivotItem2 → PageB → PageC
PivotItem3 → PageD → PageE - PageF (Pressing the back button on page F will use the NonLinear Navigation Service on the main page)

So, if custom tombstones on any of the pages, I want to return them to this page and have BackStack available so that the navigation does not freeze.

I use MVVM Light and the NonLinear Navigation Service if this helps or impairs what I'm trying to accomplish.

+3
source share
2 answers

@Tyler, Cyberherbalist: I'm sorry I can't just “add a comment” to your discussion right there. I'm still too low in reputation or something else. I do not have a blog to post it there and give you a link to it. I will just write here because I think it's worth noting and writing somewhere so that others can also check / use / permormanceprofit.

..so excuse me for this “offtopic article” here :)

, - , iso / - .

, , , . , . Mango "" , , . "" - . WP7 SDK + Emulator , . Deactivated/Activated , "". .

, "" , . , , , . Tombstoning , / . , , AppSettings ISO. , Tombstoning , .

, ?

1) "// ":

  • ... ()
  • ( )
  • ... ( , , / , )
  • (...)
  • ( , )
  • ... ()

2) "Tombstoned":

  • ... ()
  • ( )
  • ... ( , , / , )
  • ... (, , )
  • (...)
  • ... ( )
  • ( )
  • ( , , , )
  • ()

, , , , .

, ( - , ), , , , - / : .

: App "private bool _tomb_test". / . " ViewModel {get; set}".

, , - , . . / false , App . !

:

  • ( ctor!!!), "_tomb_test = true"
  • , ISO
  • , :
    • if _tomb_test == false , . , . , ISO, / ///etc .
    • _tomb_test == true, , . . , . . , .

, , :

100% - , , . , MSDN. 7.0 7.1 SDK.

, ( ?), " ".

, , , ( : App , , , . ).

, ... , - .net. . . . . , , .

BTW. - , , , !:)

+1

, , ( NonLinear Navigation Service). / ( bool), , . , iso, , . pivot_changed .

, app_deactivate, IsTombstoned iso true.

, _ , - (IsTombstoned = true), , , iso. _ , , Is Is Is ItTombstoned = true, , false ( ), , . , . , , .

, , , .

0

All Articles