Windows 8 Study Notes (15th)-Windows 8 RP Metro tombstone Mechanism

Source: Internet
Author: User
Just now, when I was running the Win8 Metro app, I suddenly thought of the program lifecycle issue that had been very tangled for some time ago. I don't know where to implement the tombstone mechanism. I think there may be improvements in the RP version. After some tests,

Conclusion: The RP version automatically implements the tombstone mechanism, 10 ~ after closing the program (window pulling down or Alt + F4 ~ The onsuspend event is executed in about 15 seconds.

The test procedure is as follows: In page1, click the button to jump to page2:

Window. Current. content = new tomestonpage ();
Window. Current. Activate ();

 

The default textblock is displayed in page2. click the button to modify the textblock value <button content = "button" horizontalalignment = "Left" margin = "465,109, 0, 0 "verticalalignment =" TOP "Click =" button_click_1 "/>

<Textblock horizontalalignment = "Left" Height = "59" margin = "207,109, 178 "textwrapping =" Wrap "text =" textblock "verticalalignment =" TOP "width =" "X: Name =" tbcontent "/>

Private void button_click_1 (Object sender, routedeventargs E)
{
Tbcontent. Text = "1234324 ";
}

 

After all the operations are completed, start another Metro program. At this time, the previous App should be in the suspended state, and the program has never entered the onsuspend event. After a while, the previous program will be executed again, and the page will remain unchanged. After the above conclusions, I have come to the conclusion that the conclusion is correct. If so, we will save a lot of trouble ~~

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.