Win8 developing how to create an application project

Source: Internet
Author: User
Tags touch blank page

The development of WIN8 application, is often said Metro style application, but the name has been changed. No matter what the name, look at the next picture to know, I give it a Chinese name is "brick."

This picture after uploading some deformation, bad tune, Bale.

How to develop "brick" style application? very simple, install vs on the line, nothing, and before we developed other such as winform,wpf,asp. NET and other applications are a kind of, you know, Ms Toys are very good unity.

At present, VS for WINDOWS8 has RC version, that is, "talent" version, of course, high man leaked a flagship version (English version), like to install which, you pick, tell you, after all, is beta, bugs are there.

Start VS, then "new"-> "project", and then you'll see many project templates. WIN8 Development Support Language is more comprehensive, there are vb,c#,javascrip,c++ and so on. Choose one you like or you get used to.

The project template is just two kinds, see and invisible, see is different layout just, invisible such as Class library. Usually, the first one is selected, that is, a blank page.

Enter the name of the project and create a "tile" application.

After the establishment of the project, we may wish to look at the contents of the project, in fact, if you carefully observe, you will find that the development of WP is very similar.

Like, right? Now open MainPage.xaml, and then we will see very familiar Dongdong--xaml.

Is it familiar enough?

Now that we're warming up, please keep the MainPage.xaml file open, we see a grid control in the page, and now we add our code to the grid.

When we run, we see a drop-down menu near the toolbar button.

We have three different ways to run the program,

1, local computer;

2, simulator;

3, remote computer.

Simulator and WP's mobile phone simulator is not the same, WIN8 application running simulator is based on your current machine installed system to simulate, which also explains why win 8 application development under Windows 8.

OK, let's select the local computer and then run the program to see.

We see that "brick" style apps are full-screen, just like mobile apps.

Next, take a look at the simulator to run.

Look, the simulator is more like a tablet computer.

Obviously, the simulator is mirrored with my current system.

Let's look at the toolbar on the right.

It can switch mouse operation, or touch screen operation. This is easier to test for applications on a tablet computer. and touch screen mode is divided into single point and more points, you can choose to zoom operation, this time the mouse pointer to two points, through the rolling mouse pulley can be enlarged and reduced, the simulation of our gesture operation.

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.