简体   繁体   English

什么是WP7中的墓碑?

[英]What is Tombstoning in WP7?

I have seen the word Tombstoning in many tutorials. 我在很多教程中都看过Tombstoning这个词。 I did not get what it actually means. 我没有得到它实际意味着什么。 Can you please explain? 你能解释一下吗?

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 . 参考

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. 假设在添加事件页面添加新日历条目时,用户会收到一封电子邮件,然后按Windows键快速查看。

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 检查App.xaml

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. ,应用程序从Tombstoning唤醒时发生的两个函数,并且即将发布Tombstone。

http://www.dimecasts.net/Content/WatchEpisode/185上有一个关于墓碑的视频教程你可能想看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM