Sometimes tombstoning can be tricky.
Often it takes a lot of boilerplate code.
Things just got much easier.
Now all it takes is 2 lines of code:
Often it takes a lot of boilerplate code.
Things just got much easier.
Now all it takes is 2 lines of code:
protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedFrom(e);
this.SaveState(); // <- first line
}
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
this.RestoreState(); // <- second line
}
Get all the tombstone helper goodness from http://tombstonehelper.codeplex.com/
Already got some tombstoning support in your app but not handling the scrollviewer scroll position?
Just do this:
this.SaveState(typeof(ScrollViewer));Head on over to codeplex: http://tombstonehelper.codeplex.com/ for more details and please be sure to let me know what you think.





