Comments: Windows Phone 7 Development you must know)

Source: Internet
Author: User
Tags visual studio 2010
Comment: Windows Phone 7 Development you must know

Http://www.phonebeta.com/thread-642-1-1.html

This article first from www.wpmind.com: http://www.wpmind.com/dev/2010/03/29/what-you-should-know-for-windows-phone-7-development.html. Windows Phone Forum

Hosting code is your only choice

For common ISVs and developers, hosting code is the only option. You cannot use C ++ to write programs, or call P./invoke for existing. Native DLL or system functions. In other words, do not expect to encapsulate some of your code in native DLL and then call it in the hosted code. . Windows Phone 7

Two development models can be selected

There are two methods to compile managed code: one is to compile the application and Application of Silverlight, and the other is to compile the xNa program ..

The Silverlight program here is not. similar to Silverlight in the conventional sense, although it is originated from Silverlight 3, it is removed. some are not. this feature is applicable to mobile devices. It also includes some Silverlight 4 features or code for mobile devices. Same. in general concepts, all the Silverlight programs we see are in bro. but for the Silverlight application on Windows Phone 7. they are all out browser, that is, they run independently from the browser. . Phonebeta

For xNa programs, it may be a strange thing for most Chinese developers. It is a development and release tool launched by Microsoft to develop games on Xbox and applications on Zun. E. Unfortunately, since Xbox and Zune have never officially entered China, development in China really pays little attention to this aspect. Similarly, it uses managed code. Its development environment is a set of things based on VI. Sual studio called xNa game studio ..

Windows Phone. 7 application architecture. Source: smart network

.

We can see that the bottom layer is. NET Compact framewo. rk, which is a core component. On top of this is some common services, such as the. Transmitter API, location API, Windows Live SERVICE, network service, multimedia, and so on. Another layer on the internet is some of the content that is unique to Silverlight or xNa itself. The top layer is the applications you write based on these two different architectures. . Windows Phone

Selection of development tools

Currently, you can download Windows Phone Developer Tools CTP. It contains Visual Studio 2010 expr. Ess for window. s phone CTP, Windows Phone emulator. CTP, Silverlight for Windows Phone CTP, and xNa game. Studio CTP. Specifically, the Express version of Visual Studio 2010 supports the development of Windows Phone, that is, it is purely free. Unlike in the past, we had to purchase Visual Studio to launch and release windows. Mobile. . Windows Phone Forum

To install this development tool, you need to use the Windows 7 or Vista. sp2 operating system and a 3.G hard disk space. The memory requirement is 2 GB, and a graphics card supporting DirectX 10 is also required. |. Phonebeta.com

If you are a front-end designer and want to study Silverlight carefully, you can download express blend 4 beta and install expression blend add-in for window. s phone. and expression blend SDK for WI. ndows pho. ne. you can try it in. in expression blend, the Windows Phone 7 Application is designed ..

Engineering type

After installing the development tool, open v. isual studio 2010 express for Windows. Phone. You will find that the following engineering types can be selected:. Windows Phone 7

|

. Windows Phone 7 Forum

We will find that in the silve. rlight application, we have two options apart from the. Class Library and project. One is "Windows Phone application" and the other is "Windows Phone list application "..

The first project is a very common Silverlight application. program. The second project is a main interface that is a ListBox application. It shows you how to use the list in the interface. However, I believe that most people need to wait for a standard 2D form and the six hubs that are similar to sliding forms. The templates of the two forms are not available in the current CT. p version, and you want to see them in the official version. . Windows Phone

.

As for xNa .. game studio, there are a variety of projects, not only Windows Phone game, but also windows game and Xbox 360. Game ..

System nature

We create a common Silverlight application and drag it into the. Button control on the interface. Double-click the button and write the following code in the Click Event:. Windows Phone 7 Chinese Forum
MessageBox .. show (system. En. vironment. version. tostring (), emerge e. M. environment. osversion. tostring (), messageboxbutton. OK );.

Press F5 to run the program. Visual Studio will automatically call the. Windows Phone 7 simulator and deploy and run your program. Click the button in the simulator. And the result is as follows :.
.

This makes it clear that Windows Phone 7 is based on the wince 7 kernel. The hosted code running on the. NET Compact F. ramework 3.7 Is. NET Compact. |

Summary

Windows Phone 7 is a brand new platform that is familiar and unfamiliar to most developers. Familiar with it is that it continues to use. C # for application development. What is strange is that it uses S. ilverlight and xNa as the development choice. However, the official launch of wi. ndows Phon. E 7 still has a long history, which is enough for us to study and study. We hope that a large number of Windows Phone 7 Applications will appear in front of users on the date of the official launch of Windows Phone 7 ..

Source: http://www.wpmind.com/dev/2010/03/29/what-you-should-know-for-windows-phone-7-development.html.
Http://blogs.msdn.com/abhinaba/archive/2010/03/13/windows-phone-7-series-programming-model.aspx. Windows Phone

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.