[Getting Started WP7-2. Hello Windows Phone for Windows Phone 7 developer training package]

Source: Internet
Author: User

This Windows Phone 7 developer training package contains 8 appsProgramInstances and four xNa game instances:

1. hellophone-Hello Windows Phone

2. yourfirstwp7application-create your first Windows Phone 7 Application

3. windowsphonenavigationandcontrols-Windows Phone navigation and controls

4. usingpushnotifications-use push notifications

5. launchersandchoosers-starter and Selector

6. applicationlifecycle-application Lifecycle

7. usingbingmaps-use Bing Maps

8. usingeffectandpanoramacontrols-use the controls of controls and Panorama

1. gamedevelopmentwithxna-game development using the xNa framework

2. 2 dgamedevelopmentwithxna

3. 2dgamedevelopmentwithxna2-Tombstone mechanism, starter and selector, and more xNa framework content

4. 3 dgamedevelopmentwithxna-3D game development using the xNa framework

  

I have read several documents about app instances,My understanding of this training lab package is familiar with development tools, key processes, architecture basics, and key class libraries.I don't have any development background for Silverlight, but it's not as easy as I thought to get started. So I just need to quickly browse this training package and understand the examples.CodeThe XAML in requires considerable effort to read data.

The training package provides all Chinese documents (which seem to be hand-Translated by translation robots) andSource code. The document is written in the form of step by step. The text code of the image is listed in considerable detail, and it is difficult to go down and make mistakes step by step. So here we only record some information that we think needs to be followed.

 

Article 1: Hello Windows Phone

Everything starts easily. Hello word, the eternal classic, must begin with the first chapter, which cannot be escaped.

View the document. The purpose of this course is to introduce the key operations of vistualstudio2010 and blend4, as well as the usage of the simulator and the debug mode. In this application, a text input box, a button, and a text display box are added. When the button clicks an event, the text display box displays the entered content in the text input box.

 

Gains:

1. Understand vistualstudio's Windows Phone Project template,

Create a new windowsphoneapplication. After a project is created, several key files are generated by default:

App. XAML: similar to the Global file in the Web, you can write four event handlers for the life cycle of the WP program and a global exception handler.

Mainpage. XAML: similar to the default page in the web, it is the first page of the WP program.

 

2. Understand the four key lifecycles of WP applications:

After creating a project, you can see four defined functions in APP. XAML. CS:

Application_launching-from start

Application_activated-brought to foreground

Application_deactivated-sent to background

Application_closing-user hit back

 The comments in the code can only show their functions. Add a breakpoint debug to several functions, and the program is the first to triggerApplication_launching. When the win key of the simulator is clickedApplication_closing. When you click the back key of the simulatorApplication_deactivated.Application_activated has not been triggered in the code in this example. There is also a training package dedicated to explaining the Life Cycle. More details will be available at that time.

 

3. A preliminary understanding of Silverlight:

Open mainpage. XAML. The XAML editor is cool. The UI editing window and the XAML code window are displayed in the left and right columns. By default, the Project template uses the Grid Control to create the upper and lower column layout of title and content. The document explains that grid is a layout design element. It is mainly used for layout and should be similar to Div and table elements in the web. Silverlight provides several layout controls, details can refer to: http://msdn.microsoft.com/en-us/library/cc645025 (vs.95). aspx

Canvas: defines an area in which you can coordinate the position of child element controls as needed.
Grid: defines a flexible grid area composed of columns and rows.
Stackpanel: arrange child control elements horizontally and vertically.

 

3. A preliminary understanding of Blend:

Blend is more complicated than you can think about. More than a dozen panels have hundreds of options, attributes, menus, and so on. In Solution Explorer of Vs, right-click the XAML file and choose "open in expression blend" from the shortcut menu. You can directly enable blend to perform uidesign on the selected file.

Menu: Widnows-> workspaces: You can switch between the common design mode and the animation timeline design mode.

Panel: objects and timeline Object Tree

Panel: States allows you to set the corresponding UI dynamic changes for the focus response events and mouse movement events of buttons and other controls.

Panel: Transform allows you to set object displacement, deformation, rotation, and other effects.

Panel: easing sets the dynamic deformation rate when the animation key frame is switched

 

 

 

HTML format as XML Engine

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.