Windows Phone 7 Study Notes 1: Hello, Windows Phone 7

Source: Internet
Author: User
Tags visual studio 2010

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.

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.