Windows UWP Development-Preface

Source: Internet
Author: User
Tags windows x86

Nearly a year after Windows 10 was released, Visual Studio 2015 has also launched UPDATE2,UWP application development, which is not only ripe but also convenient. So I'm going to write a series of articles to document how I've developed UWP apps, and for myself it's a note, as well as a reference for other friends. UWP apps are very similar to previous WPF and Silverlight, and their UI parts are based on DirectX technology, and are built using XAML, meaning that the flexibility works well. Logic code supports C + +, C #, VB, and JavaScript, so there is no barrier to developing languages for most programmers. The first thing to note, of course, is that these languages can provide different functions. Using C + + development can support all UWP and most Windows features (some Windows features, of course, are not allowed in apps that need to be submitted to the Windows store, and can only be used in apps that are deployed by sideloading). Using C # and VB are the same, both of which belong to the. NET language, which can call the. NET class library, but some features are not supported or are not directly supported without a third-party class library. The first is the DirectX section, which must rely on third-party class libraries to use. Net for DirectX. JS is probably the most restrictive, so I will not use this language in the article. In the article about UWP I will primarily use C++/CX (and try to use the standard C + + and C + + standard libraries, the C + + syntax will be based on the C++11 standard, and the Microsoft PPL Parallel Pattern Library and the AMP library, as well as the WIC image processing component), may be interspersed with some. Net,ui Aspects are XAML and xaml+directx. Primarily XAML, of course, does not discuss the content of DirectX in detail, at least not in the UWP article. The reason is simple, there is no difference between the use of DirectX in UWP and traditional Windows apps, and what I want to record in a UWP article is something peculiar to the UWP. And I'm not going to talk about Windows IoT, only content that's about Windows 10 and Windows Mobile.

First of all, the development platform and development tools. The first thing you need to do to develop a UWP app is Windows 10, and it's not possible to develop UWP apps directly on other versions of Windows. And if the development of the application to be submitted to the Windows store above, then must not install beta version of Windows 10, must be developed in the official version. Microsoft also mentioned in the development note, because some of the code itself without any problems will be due to the beta version of the problem, and some of the code in the test version is not a problem, but can not be run on the official version. So the development of Windows 10 must use the official version, and do not in the development of windows with those so-called optimization software, such software is likely to cause some inexplicable problems. In addition, UWP apps need to support touch operations, so it's important to prepare a tablet for testing (test devices should never install anything messy). As for Windows Mobile phone, the status quo is the use of people is really very few ah, and the emulator on Windows has basically been able to meet the requirements, if the test touch operation, on the tablet can also be tested, so it is necessary for a Windows phone to the beholder, there is better. As for HoloLens, use the simulator for the time being, and I will not discuss the contents of HoloLens for the time being.

Visual Studio 2015 is certainly essential, and without this there is no way to develop it, at least for the vast majority of programmers who do not want to trouble themselves. Community (i.e. Community Edition) is free, and the functionality of the Professional version is basically the same. As: Https://www.visualstudio.com/downloads/download-visual-studio-vs. Be sure to select the ISO when downloading, and be sure to check the SHA-1 value after downloading, because many people downloaded to the ISO has been damaged, installation of the damaged ISO will not only fail to install, and may cause the reinstallation to fail, and eventually have to reinstall the operating system, so be sure to verify the SHA-1 value before installation. Installation as far as possible only to install their own needs, not a brain of all the tick, users in mainland China do not check the content labeled "Third party". If the download of the ISO is in Chinese, it does not need to download the installation of Chinese language pack, but can choose to install other language packages such as English.


15 years ago I first independently developed an application, it is a human resources management software, then the development of software is really troublesome, basically no one to carefully consider the UI design, can use the line, or can use it is very good. But now the UI interface has become more and more important, and a lot of people are full-time UI designers. Visual Studio has been doing a good job of developing the interface, and the XAML itself is already easy to use, and VS also provides more direct mouse manipulation. But many UI designers prefer Blend, especially when animating. Blend is already included in VS, and you don't need to download the installation separately, and you'll install blend automatically when you install vs. My article will still focus on VS, and will use XAML directly, without involving the use of VS designer content.

If you want to debug on a remote device also need to download Remote Tools, Web page address and VS2015 is the same, choose just on the left. As for downloading x86, x64 or ARM, depending on the operating system on the remote device, such as debugging on a tablet with Windows x86, download the x86 version, and if it's x64 Windows 10, download the x64 version.


There are currently only two ad platforms officially supported by the Windows UWP, one is Microsoft's own ad and the other is Adduplex. The SDK for Microsoft ads can be downloaded from here: https://visualstudiogallery.msdn.microsoft.com/229b7858-2c6a-4073-886e-cbb79e851211. Or go here (https://developer.microsoft.com/zh-cn/windows/monetize/ads) and select "Get SDK". Adduplex's SDK is here: https://visualstudiogallery.msdn.microsoft.com/6930860a-e64b-4b46-9d72-62d7fddda077.

Developer account (Microsoft ads have been integrated into the developer account, no separate registration) need to go to Microsoft to register, a one-time fee (via dual currency or dollar credit card), the personal account of about $19, the company account of about $99, the registration fees in different countries varies slightly depending on the exchange rate. Registered address is: Https://developer.microsoft.com/zh-cn/windows/programs/join, before registration it is better to look at this https://developer.microsoft.com/ Zh-cn/windows/programs/faq. The free Student Development Account seems to have been canceled since the cost has been lowered, so to submit apps to the Windows store, you have to pay honestly. Of course, you can not submit to the store, such as loading or learning on your own device for practice, this is not required to pay to register the developer account. After obtaining the developer account to pay attention to abide by the agreement, Brush list and other acts will be punished by the number, once it is difficult to appeal the closure, only re-payment to register a new account. And if the account is blocked, then all applications under this account will be void and no more revenue can be obtained from it. Of course, in general, there will be no such severe punishment, at most, the application was ordered to rectify. Because I have not encountered the next frame or the number of punishment, so there is no experience in this area to share with you.

Register Adduplex account directly to the Adduplex website up on the line, the site is very concise, at a glance, without any fees and credit card. http://www.adduplex.com/

If you want to use Microsoft maps, you'll need to register separately in each app after you've got your developer account, and that's no charge.

    finally talk about the experience of getting help with development. About UWP Development, what's on MSDN (document: Https://developer.microsoft.com/zh-cn/windows/windows-apps, Example: Https://github.com/Microsoft /windows-universal-samples, note that Microsoft will occasionally update the sample) is very rich and plentiful, but as one MSFT (the Microsoft employee) said in an English MSDN forum earlier, "documents are scattered everywhere" and search is difficult. In addition, the worst point is that there are many documents, although the Chinese version, but the content is different from the English version, so look at MSDN still have to read English version (if the Chinese version, the address of the ZH-CN into the English version of En-us, and vice versa), at least to look at the Chinese version is not. Sometimes the English version of the sample code, the Chinese version is not, some English version is for Windows 10, but the Chinese version is for Windows 8/8.1, there are some translation problems. If you encounter problems during development, you can go to the MSDN Developer forum to ask questions, the Chinese forum is: https://social.msdn.microsoft.com/Forums/zh-CN/home, English forum: https:// Social.msdn.microsoft.com/forums/en-us/home, in the Chinese forum to ask questions in Chinese, in the English forum must use English, in the Chinese forum in English questions to get the reply will be very few, In the English forum, the Chinese question is not answered at all. Other English forums include: http://www.codeproject.com/,http://stackoverflow.com/, and so on. The response on the forum may sometimes be slow, so be patient, and the holidays are generally very few people reply, ask questions as far as possible in the work time, long-term no one reply or no effective response is also very large. Another point to note, the Forum's reply, including MSFT's reply is not necessarily 100% correct, including like me in the content of the blog is not guaranteed as authoritative as the classic textbook, after all, are readily written things, not repeatedly carefully demonstrated, not to mention the tutorial sometimes there are errors. Therefore, you must not form a direct copy of the habit, the reference code provided by others must be self-testing, and it is likely to be based on their own projects to adjust the changes. Attach a link here: https://github.com/, which provides a veryMany very valuable open-source third-party library, most of the quality is very good, but not all guaranteed, so when using a lot of testing. It is important to note that neither Microsoft nor the MSDN forums provide any support for any third-party class libraries. Some well-known third-party libraries may be mentioned in my article, but they will not be discussed in depth.

The content of this article is certainly superficial for the Windows developers who are already on the go, but it should still be helpful for friends who are preparing to start UWP development. Anyway, the final sentence, reproduced please indicate the source.

Windows UWP Development-Preface

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.