Window phone8.1 Hello,world (supplementary job)

Source: Internet
Author: User

In the first step, we need to create a simple hello, World program to help us understand the approximate direction.

Here are the steps for this small example:

1. Open vs, click file - new - project:

Take a name, for example hello_world and click OK to finish.

2.ps: Write code is difficult, so you can use the view to write code, add some buttons , etc., but some specific operations are done manually, because we need to have their own app unique way.

First see the Project Explorer MainPage.xaml, resource Manager, etc. if not, please check it out in the view options. After double-click appears:

Next open the Toolbox, in the left sidebar, if not, go to the view to adjust, I will not each.

Then the toolbox blocks the XAML page, click on the upper right corner of the toolbox to automatically hide the staple pattern, the following is:

Then, drag the button from the Toolbox and a TextBlock out, you can see, drag and drop at the same time,

The code on the right is automatically added button Code and textblock

Then you can manually use the return key to split the line, good-looking.

Then, you can click the Toolbox Properties window, the mouse to select the appropriate control,

And then modify its properties, in this example, we modify something:

The important thing here is to realize, click on the Span style= "FONT-FAMILY:CALIBRI;" lang= "en-US" >buttontextblock show hello,world! This needs the listener function to realize, certainly is button click event, then Textblock

The Click Property has a small lightning bolt at the top right, and everyone looks at the picture and then points in and appears:

For the Click Action to create a listener function, I name staggered Clickme_click, which are random, and then enter

The following interface appears:

Turn on the virtual machine, run, click the button you can see the effect, you need to wait, because the computer is very slow ... button and TextBlock are clicked again.

Window phone8.1 Hello,world (supplementary job)

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.