Windowsphone8.1rt creating a blank app cannot save data

Source: Internet
Author: User

wp8.1, the problem encountered after building a blank application: you want to achieve save, extract data can not be successful

1, the program will first run MainPage (), and then into the Onnavigatedto (), before the first run onnavigatedto.

2: Unable to enter the Onnavigatedfrom () after exiting the program.

Online say to manually invoke the Onsuspending event?

-------------------Shabby dividing line-----------------------------

Later learned that in the blank application of the lack of SuspensionManager.cs, NavigationHelper.cs, etc.

Although said can add their own, but the trouble, need to fly a lot of kung Fu.

So the advice is: build other non-empty projects and build your own mainpage with BasePage.

In addition, you may have problems when you want to save data while running on the emulator.

Report:

On Windows Phone, Onnavigatedfrom () was called when the app was suspended.

Onnavigatedto () isn't called when the app is resumed.

Windowsphone8.1rt creating a blank app cannot save data

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.