Install Windows Phone 7 in the development environment. You only need to download the SDK from Microsoft (the latest version is 7.1, applicable to devices of Mango 7.5). After installation, you can install the SDK. If vs2010 is not installed on your machine, or vs2010 is not an English version, A visual studio 2010 express for windows phone will be installed along with the sdk, which is actually a simplified version of, it can only be used to develop windowsphone applications.
After the installation is complete, run vs 2010 express for windows phone, create a "Windows Phone Application" named HelloWindowsPhone7, select the Save location, and click OK.
Windows Phone supports two resolutions: 320*480 and 480*800.
This item uses the XAML syntax, so it is easy to get started if you are familiar with WPF or Silverlight.
Modify the Title attribute of the App node in/Properties/WMAppManifest. xml to set the name displayed on the device, for example:
Modify the MainPage. xaml file and modify ContentPanel as follows:
<Grid x: Name = "ContentPanel" Grid. Row = "1" Margin = "12,0, 12,0">
<TextBlock x: Name = "tbkMessage" Text = "Welcome to windows phone 7" HorizontalAlignment = "Center" VerticalAlignment = "Center"> </TextBlock>
</Grid>
Run the program. You can see that a line of text appears in the center of the simulator screen.
We can find the. xap file in the debug directory, which is the program running in the simulator and the wp7 Installation File. In fact, this file is a zip package. After you change the suffix to. Zip, you can use the decompression tool to view the content contained in it.