1. Hello UWP

Source: Internet
Author: User

1. UWP

Uwp,universal Windows Platform, the new universal Platform app for Windows 10, can run on Windows 10 PCs and phones once encoded, even on wind like Xbox, Hololens,iot, etc. OWS 10 devices. Of course, you can only develop applications that apply to a single platform, or you can use the Extenstion SDK to develop certain applications that are only available for specific device functions.

2. Development Requirements

(1) Windows 10

(2) Visual Studio 2015, download Community free version

(3) Select "Developer Mode" for developers in update and security, System setup

3. Hello UWP

(1) New Project HELLOUWP

   

(2) Drag the Button and TextBlock from the left toolbox to the design interface

   

As you can see, the content displayed in the interface is displayed in the edit box on the right, which is XAML and is structured like HTML and XML. To change a control's properties, you can change it directly in XAML or at the right-hand property window.

(3) Double-click button to create a change text event

Clicking the button automatically creates a click event for it and jumps to the background. As you can see, the XAML and control logic for the display interface is in the same class, with the partial keyword associating two of files.

Private void Clikemebutton_click (object  sender, RoutedEventArgs e) {    "Hello UWP" ;}

4. Commissioning

(1) Press F5 to enter the debugging, you can choose the local debugging and simulator debugging.

(2) When using the simulator, it can simulate various operation of the mobile phone, including gyroscope, position information and so on.

(3) When you want to stop debugging, you do not have to shut down the simulator just click the VS Stop Debugging button, so that the simulator can be kept open, saving the next time to debug open simulator.

(4) The results are as follows

  

Original video link:

1. Uwp-001-series Introduction

2. Uwp-002-creating your first Universal Windows Platform App

3. Uwp-003-overview of Topics related to Universal Windows Platform App Development

1. Hello UWP

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.