Creating applications for Windows 10. How to create your first application for Windows Phone

Windows 10 Mobile phones arrived with a significant delay compared to Android and iOS, promising better features for the lost time. The promise turned out to be empty, but this was a key moment in the development of Windows as a universal system for all devices. Moreover, applications in Windows 10 remain so foreign that even after so many years of existence, the Microsoft Store remains many times poorer than the App Store and Google Play.

However, it is premature to say that the ability to develop applications for Windows 10 is useless. Firstly, Microsoft has a desire to launch a series of mobile phones under the Surface line in 2017-2018, aimed at a business audience, that is, to occupy the niche vacated after BlackBerry left the market.

Secondly, even taking into account the constant decline in the smartphone market on WM, Windows still dominates on computers, and HoloLens promises to stir up interest. Thirdly, a half-empty, but still common application store suggests much greater opportunities to attract an audience.

In general, although application developers for Android and iOS will be a little more in demand today, their colleagues working for the benefit of Windows have the opportunity to become a real messiah who will save the entire platform. And here is a short guide to what you need to learn at a minimum for this.

Acquaintance

First of all, take a closer look at the universal platform for applications, which from now on will bear its official name - Universal Windows Platform or simply UWP. It appeared back in the days of Windows 8, and today it has acquired all the necessary amenities. Although the concept has the slogan “one application for all devices,” for a good application you still have to focus on a separate type. In general, you will find out all the features and limitations of UWP if you read the official release from Microsoft:

Language

In the Microsoft fact sheet you can find the following phrase: “You can create UWP apps in the programming languages ​​you are most familiar with...”. In fact, this is not entirely true. You have a choice of 4 of them: C#, Visual Basic, C++ and JavaScript. Of course, this is better than a strict restriction, but it is difficult to call it universality.

By the way, reference books for all four languages ​​can be found directly on the Microsoft website or simply by clicking on the links provided. You can also go for free on our website.

Software

The main brainchild of Microsoft, aimed at application developers for various platforms, is Visual Studio. You can also download it from the official website by selecting the appropriate version. You will learn how to work with it, what tools you may have at your disposal, and most importantly where to press, from the manual. The SDK package will also be required to download. On this page you will find all the information you need about working with it.

There is also an alternative option for creating an application for Windows 10 for those who are a little too early to plunge into the world of Visual Studio. Meet Windows App Studio. In fact, it is an application builder with a set of templates that will help you quickly visualize your idea.

Registration

As befits a reputable company, Microsoft has released quite detailed guidelines for designing UWP applications for its developers. Here you will find answers to all your questions: from typical screen sizes to descriptions of command elements, from standard colors to Adobe Photoshop and Illustrator templates.

Application development

Here you will find information on how to increase the popularity and performance of the application, how to withdraw money, what are the terms of cooperation with Microsoft, and so on.

Literature

Finally, here are a few popular books and resources that will help you create the perfect Windows application:

Windows 10 Development for Absolute Beginners – as the title suggests, this book is dedicated to those who want to create their first application on Windows 10;

Building Windows 10 Applications with XAML and C# Unleashed (2nd Edition), Adam Nathan – and again the title of the book eloquently reflects its content;

Real World Windows 10 Development, Edward Moemeka, Elizabeth Moemeka - a complete guide to developing an application for Windows 10, starting with an overview of the OS itself, its advantages and disadvantages, and ending with verification and uploading of the object you created;

Location Intelligence for Windows Store apps, Ricky Brundritt - a comprehensive guide to developing Windows apps. Part 8 of the OS is dedicated, so periodically it is necessary to check the official documentation, which does not in any way reduce the value of this literature;

– the book describes the life cycle of a Windows application in a fairly general way and, in much more detail, describes third-party functions and tools;

Windows Developers Forum - ask questions and discuss pressing development issues;

A Developer's Guide to Windows 10 - an hour-long video tutorial that will help you understand all the intricacies;

Japan was more than noticeably affected by the results of World War II. In 1946, the government froze all personal deposits of the population and introduced cards for many types of goods, including food. Two years later, American authorities decided...

Such cars are also sold in the Russian Federation, despite the fact that, unlike other countries, their owners here do not receive tax benefits. Our compatriots for the most part treat such “fashionable things” with lukewarmness, however, BMW in...

In 1927, Giovanni Agusta died, leaving the new enterprise to his wife Gussepina and 20-year-old son Domenico. The young count was fond of motorcycles. And when, towards the end of World War II, it became clear that in Italy the aviation industry alone was...

It would seem that Ducati and chopper are completely incompatible things. But someone drives cruisers! And there are many such people. And, therefore, they shell out money for such tales - God forbid how much! So, handing over this entire segment to competitors...

Jujiro Matsuda opened the forge twice, but circumstances were such that the business had to be closed. Only in 1920, Matsuda and a group of investors acquired the bankrupt Abemaki construction company in Hiroshima, which was engaged in...

But there are still exceptions to the rules. Toyota Land Cruiser Prado 2002 model year, with its “urban” style, is able to overcome even serious off-road conditions. The combination of the words “Land” and “Cruiser” alone allows us to classify the model as a...

Events - Subaru Impreza WRX

Designed to Impress The name Impreza comes from the English word impress, which means “to make an impression”, “to amaze”. And the addition WRX indicates that this is one of the highest modifications of the Subaru Impreza model. For the first time she was...

In December 1887, a boy was born into a peasant family near Milan, who from childhood was interested not so much in agricultural work as in the then fashionable technology with gasoline engines. At the age of 15, Giuseppe Gilera (and it was he) got a job...

It was the first in Japan to receive a distributed fuel injection system. There was also a version with a diesel engine, which became the world's first such Gran Turismo car. These days, this car is a true classic and a must-have...

The white stripe is black, and again the white stripe is black. Up and down, up and down. This is not an attraction at Luna Park, but the course of life of one of the best Formula 1 racers. On September 17, 1960 in London, in the family of the future two-time Formula 1 world champion Gr...

But Suzuki was not always a company that produced engines. It all started prosaically and very much in the spirit of minimalist Japan. In the small godforsaken village of Hamamatsu in Shizuoka Prefecture (the same one where Soichiro Honda, the founder of another...

As it turned out, they had similar views, so they immediately began to cooperate. Volvo's birthday is considered to be April 14, 1927 - the day when the first car called Jacob left the Gothenburg plant. This event marked the birth of a new Swede...

Mechanics Johann Winkelhofer and Richard Jaenicke in February 1885, under the Wanderer brand, began producing bicycles of their own, original design, which became very popular. As a result of widespread motorization in 1902,...

Renault F1 Team. Parallel - converge! French line, broken

At the dawn of Formula 1, its tracks were dominated by teams of automobile corporations. Alfa Romeo, Maserati, Ferrari - no one doubted that their cars would be among the favorites. Then some factory teams left the Royal Races, in return...

History of the brand, or Why cars with the “TRD” nameplate cannot be considered ordinary Toyotas on June 7, 1954, when neither Corolla nor Crown were in the “arsenal” of the young and unknown Toyota company outside Japan, and Land Cruiser was not even thought of get...

Last updated: 10/31/2015

Let's launch Visual Studio Express 2013 for Windows. Select File->New Project... from the menu. The project creation window will open in front of us:

In the left part of the window, select Visual C#->Store Apps->Windows Phone Apps. And among the templates for the new project, select Blank App (Windows Phone), give some name to the project, for example, call it HelloApp. And click OK.

And Visual Studio will create a new project:

A Blank App template project has the following nodes by default:

    The Assets directory containing the image files to be used

    App.xaml and App.xaml.cs - application resource file in xaml and application code file in C#, respectively

    MainPage.xaml and MainPage.xaml.cs - application window GUI file and window code file in C#, respectively

    Package.appxmanifest - application manifest file

At this early stage, the files are of value to us. MainPage.xaml And MainPage.xaml.cs. Let's open the MainPage.xaml file, which represents the graphical interface:

On the left, in the form of a phone, we will have a graphic designer window. On the right is the graphical interface layout window in xaml. The graphical interface in this case is represented by the MainPage class, which is a separate page. All changes we make to the interface will be immediately displayed in the graphic designer, which will give us a visual understanding of how everything will ultimately look.

Let's say our application will calculate the deposit amount after interest has been calculated. To do this, we need a field for entering the deposit amount, a field for displaying the result, and a button with which we will initiate calculations of the total amount. So let's change the file code MainPage.xaml as follows: