Windows 8 Development-about migrating wp7 applications to Windows 8 metro, Windows 8 win8

Source: Internet
Author: User

Windows 8 Development-about migrating wp7 applications to Windows 8 metro, Windows 8 win8

Although Microsoft said that porting wp7 applications to win8 is relatively simple, it only needs to modify some details of the API and design principles. At the same time, it also provides a concise reference document;

In fact, this porting workload is not small, especially when the application references a large number of underlying APIs.

 

The following are some considerations for porting an application:

 

(1) UI: basically all the UI pages will be changed, mainly because of the change of a reference library. Some controls on wp7 are not supported on win8, such as PhoneApplicationPage.

(2) Database: currently, win8 does not have a source database, but sqlite can be used for data storage. win8 does not support SQLCE databases in wp7.

(In win8, win32 libraries such as system. data. linq still exist, but errors may occur during 64-bit Compiling)

(3) If the original wp7 application involves registering a mobile phone alarm, you have to rethink the logic of the ring. There is no alarm clock in win8, but you can consider using the supported message push Notification (that is, to implement timed push Notification, refer to the blog ).

(4) background process model: the background model of win8 is similar to that of wp7. background processes cannot run continuously (once at intervals). For details, refer to: blog or msdn document.

(5) changes to some other reference libraries. I have not found a complete reference document for the moment. I can only search and replace it in different ways.

Here, I have to talk about the library in. net. A dll library will have more than N versions, and an error will occur when I accidentally use such a library.

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.