Analysis of page usage in Windows Phone development

Source: Internet
Author: User
During the development of Windows Phone, you may encounter the concept of a page. Here we will share with you that the pages in Windows Phone development are not exactly the same as those in Silverlight, silverlight is generated by frame and page, while WP7 is generated by phoneapplicationframe and phoneapplicationpage.

Windows Phone development page
The form of WP7 is no longer the same as that of mobile. It is a webpage-type window-page generated by Silverlight. However, it is not exactly the same as Silverlight. Silverlight is generated by frame and page, while WP7 is generated by phoneapplicationframe and phoneapplicationpage.

In addition, for WP7, there is also the problem of screen steering. For redirection, it is very simple. You only need to add a sentence to the constructor of each page.
Supportedorientations = supportedpageorientation. Portrait | supportedpageorientation. landscape;

◆ If you want to add some functions during redirection, You need to load the redirection event.
This. orientationchanging + = neweventhandler & lt; orientationchangedeventargs & gt; (orientchanged );
If the control position on the page needs to be changed during the redirection, this is also very simple. You only need to set the grid parameter.

◆ There is a return key on WP7. When you press this key, it will be rolled back to the previous page. If you need to add some operations here, you need to load the backkeypressevent.
In addition, when the page jumps between pages during Windows Phone development, if you use this. navigationservice. navigate (newuri (URL, urikind. A new page will be created, so if you want to return to the previous or next page, you must use the rollback key, Goback (), goforward () function to complete.
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.