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)