Win8 development how to create an application project

  
to develop applications under Win8, is often said Metro style application, but this title has been changed. No matter what it is called, look at the picture below and I will give it a Chinese name called “Brick Brick”.

This image has been deformed after uploading, and it is not easy to adjust.
How to develop & ldquo; bricks & rdquo; style application? Very simple, install VS on the line, nothing, and we have developed other applications such as WinForm, WPF, ASP.NET, etc., you know, MS toys are very uniform.
At present, VS for Windows8 has RC version, that is, "talent" version, of course, the high-profile leaked flagship version (English version), like to install which, you pick, tell you, after all, is the beta version, Bug is there.
Start VS, then “New”->“Project”, then you will see many project templates. The languages ​​supported by Win8 development are more comprehensive, such as VB, C#, JavaScrip, C++, etc. Pick one that you like or that you are used to.

The project template is nothing more than two types, visible and invisible, visible different layouts, invisible such as class libraries. In general, choosing the first one is a blank page.

Enter the project name and create a "bricks" application.
After the project is established, we may wish to take a look at the contents of the project. In fact, if you carefully observe it, you will find it is very similar to WP development.

Like? Now open MainPage.xaml, then we will see the familiar stuff ——XAML.

Is it familiar enough?
Now, let's warm up, please keep the MainPage.xaml file open. We see a Grid control in the page. Now, we add us in the Grid. Code.

When running, we see some drop-down menus near the toolbar buttons.

We have three ways to run the program,
1, local computer;
2, simulator;
3, remote computer.
The simulator is not the same as the WP mobile phone simulator. The simulator running on the Win8 application is simulated according to the system installed on your current machine. This explains why Win 8 application development is performed under Windows 8. .
Okay, let's choose the local computer, then run the program to see.

We see that the "brick" style app is full screen, just like a mobile app.
Next, let's take a look at running with the simulator.

Look, the simulator is more like a tablet.
Obviously, this simulator uses my current system as a mirror.

Look at the toolbar on the right.

It can switch between mouse operations or touch screen operations. This makes it easier to test apps on your tablet. The touch screen mode is divided into single point and multi-point, and the zoom operation can also be selected. At this time, the mouse pointer becomes two points, and the zooming and zooming can be performed by rolling the mouse wheel to simulate our gesture operation.

Copyright © Windows knowledge All Rights Reserved