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