Learn Windows phone 7 development together (3. Page)

Source: Internet
Author: User

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 isPhoneApplicationFrameAndPhoneApplicationPageGenerated.

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 to the redirection, You need to load the redirection event.

This. OrientationChanging + = new EventHandler <OrientationChangedEventArgs> (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 back key press event.

In addition, if this. navigationService. navigate (new Uri (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.