Learn Windows Phone 7 development together (3. Page)

Source: Internet
Author: User
Tags silverlight

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.