Windows Phone 7 tips (1)

Source: Internet
Author: User


I have been learning Windows Phone 7 for some time and have also sorted out some good knowledge points. The following series will share 10 Windows Phone 7 tips for each blog and provide offline document downloads.



 






1. Windows Phone 7 ApplicationsProgramCannot run in the background, does not support multi-task[However, we can use the tombstone mechanism tombstoning]



2. Windows Phone 7 Application's xap package has a maximum operating behavior of 400 mb



3. Set the ICO icon of the application: Right-click the project and set the icon to your own image.



4. Replace the default Windows Phone 7 startup Screen: Replace splashscreenimage with your own image.



5. Set the Windows Phone 7 application startup page: Set in wmappmanifest. xml



<Tasks>
<Defaulttask name = "_ default" navigationpage = "mainpage. XAML"/>
</Tasks>



6. aliases are supported in Windows Phone 7 page navigation.The usage is as follows:



Configure matching aliases in APP. XAML and add namespaces






The configuration matching tag is as follows:



 



 ThenCodeAdd the following code to the app () method of APP. XAML. CS:



 



Then we can use aliases in The XAML code to find the specific page.

7. Windows Phone 7 the simplest page pass
Delivery page

 

Accept Page In Load Event
if (NavigationContext.QueryString.ContainsKey ("username")) {tbUserName.Text = NavigationContext.QueryString ["username"]. ToString ();}

8. Disable the physical back key: rewrite the BackKeyPress event of the page

private void PhoneApplicationPage_BackKeyPress (object sender, System.ComponentModel.CancelEventArgs e) {e.Cancel = true;}

9. Hide and show the system tray in Windows Phone 7
Microsoft.Phone.Shell.SystemTray.IsVisible = true;

10. The Application Bar supports up to 4 operation icons. The Application Bar does not support data binding. You need to use C # code to control in the post code. And the recommended transparency values are 0, 0.5 and 1.


  In order to facilitate everyone to read offline, make CHM files, file download: Windows Phone 7 Tips (1) .chm (7kb)

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.