WP7 learning Notes 1. Hello WP7

Source: Internet
Author: User

When the solution deviates from your expectation, you may need to clear the embarrassing past, take a deep breath, and then try to start with a new attitude. On a golf course, this is called "Mulligan". On Campus games, it is called "do-over". on a computer, we call it "reboot ".

From WM to WP7, It is a reboot.

It supports the Popular Development Platforms: Silverlight and xNa.

 

Select WP7 as the target

WP7ProgramAll use. Net ControlCode(. NET managed code. You can use C #, VB.net, and so on.

Tool: studio 2010 express or Visual Studio 2010

Microsoft Expression blend (graphics and animation)

Silverlight shares some WP7 class libraries with the xNa platform. You can use some xNa class libraries in Silverlight, and vice versa. But you cannot mix the two platform programs to create them together. You may be able to create them in the future, but not now (now you can do it? I'm not sure ). Therefore, before creating a vs project, decide whether your idea is SL or xNa.

Sl is mainly used for traditional applications. XNa is mainly used to write high-performance games. But it doesn't mean they can only be used in this way. You can also use SL to write games, or use xNa to write traditional applications, but this may be too challenging.

 

Hardware Chassis

The first WP7 device will have only one screen size and may have another in the future. Each device must contain other hardware features.

Back, start, search.

Currently, 480*800 screens are supported, and 320*480 screens will be supported in the future. No other screen options.

SL applications are generally presented in portrait mode, while xNa games tend to be in Landscape mode.

 

Sensors and services

WP7 devices must include some other hardware features, sometimes called sensors. Some software services may be supported by related hardware. These are the most influential to developers:

Wi-Fi

Camera

Gravity sensing

Positioning

Vibration

FM radio

Push notification

 

File | new | Project

After the development environment is set up, let's create the hello Windows Phone 7 program.

 

The first SL mobile phone program

Create a Silverlight for Windows Phone project,

If you cannot find the Silverlight for Windows Phone option in Vs, you need to install

Http://www.microsoft.com/download/en/details.aspx? Displaylang = en & id = 27570

Download"Vm_web2.exe"Run it. This is an online installation. It takes about 20 minutes to download more than 300 m.

 

Under the vs menu, you can see the following, through which you can choose to use a simulated mobile phone for debugging, or use a real mobile phone. If you use a real phone, you need to go to http://developer.windowsphone.com. Here to register. After registration, you can run the WP development registration program to unlock your mobile phone and enter your Windows Live account. In this way, you can directly deploy the program to the mobile phone from.

 

Standard SL files

SL file description, omitted


Color subject

Omitted

 

Points and pixels

Omitted

 

Xap is a zip file.

After the xap file is changed to zip, you will understand that it is actually a compressed file package.

 

XNa program for mobile phones

I don't want to watch it for the moment. I skipped it.

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.