Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Tombstoning in WP7?

I have seen the word Tombstoning in many tutorials. I did not get what it actually means. Can you please explain?

like image 404
Vaysage Avatar asked Jan 13 '11 05:01

Vaysage


3 Answers

The procedure in which the operating system terminates an application’s process when the user navigates away from the application [is] called tombstone or tombstoning. The operating system maintains information about the application’s last state, that is, its last viewed page and the navigation journal. If the user navigates back to the application, the operating system restarts the application process and passes the state data back to the application.

Ref.

like image 89
Mitch Wheat Avatar answered Nov 09 '22 01:11

Mitch Wheat


What Mitch referenced is a good example. A more app-driven example would be something like:

you have a 'Calendar' style app that users can enter their calendar into. Suppose while adding a new Calendar entry at the add-event page, the user recieves an email, and presses the Windows key to quickly view it.

Then, To navigate back to the app, presses the Back key, which, instead of opening the application, opens to the add-event page, where the user left off.

Check App.xaml for

private void Application_Activated(object sender, ActivatedEventArgs e)

and

private void Application_Deactivated(object sender, ActivatedEventArgs e)

, the two functions that happen when the application awakes from Tombstoning, and is about to Tombstone.

like image 24
William Melani Avatar answered Nov 09 '22 01:11

William Melani


There's a video tutorial of tombstoning at http://www.dimecasts.net/Content/WatchEpisode/185 that you may want to watch

like image 29
Matt Lacey Avatar answered Nov 08 '22 23:11

Matt Lacey