Windows Phone 7 tips (9)

Source: Internet
Author: User

1. Navigation in Windows Phone, in the sameProgramCentralized use of navigation between pages

 Navigationservice. navigate (New uri ("/folder (s)/targetpage. XAML", urikind. Relative ));

Jump from one Assembly page to another Assembly page using

Navigationservice. navigate (New uri ("/assemblyname; component/folder (s)/targetpage. XAML", urikind. Relative ));

2. if you want to play music in Windows Phone, you need to check whether the current user is using a music player. If you are listening to music, we need to remind you that "our app has its own music, pause music player"

3. obtain the themes used by the system. Currently, only the themes dark and light are available in the real machine. Therefore, we can use the following method to detect the current themes and use the corresponding icons.

 

4. How do I exit the Silverlight for Windows Phone application?In the current version, there is no good method to exit the application (xNa provides a way to exit the application ), the recommended method is to throw an exception. Refer to the blog

 

5. Do not use istrial () in a loop. It will consume 60 ms or more.

6. In WP, use GPRS to download an application up to 20 mb

7. 30-frames per seconds xNa updates the screen. While 60-frames per second Silverlight updates the screen

8. The panaroama background image is 1000x800.

9. 173x173-tile size

10. You can use the imagetools class library to play GIF images on Windows Phone.

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.