UWP - Create Simple Application By VS 2019

In this article, I am going to create a simple UWP application using the MS visual studio in 2019.

Introduction

 
In this article, I am going to create a simple UWP application using the MS Visual Studio 2019. UWP is a Universal Window Platform created by Microsoft and launched at Windows 10 only. UWP has been used for two major programming languages to develop the UWP application - C# and XAML. Once developed, the UWP application makes it support all the Microsoft products.
 
Requirement
 
Visual Studio 2019
 
Number of steps to be followed,
 
Step 1 - Create a new project
 
Let’s begin with the Visual Studio 2019. Open and click on “Create a New Project” available under the "Get started" wizard.
 
UWP - Create Simple Application By VS 2019
 
Step 2 - Select Template
 
There are so many templates available under C# that you can choose based on your project.
 
Choose blank template >> click Next.
 
UWP - Create Simple Application By VS 2019
 
Step 3 - Configure your new project.
 
Give the project name at the project name text box.
 
Next, click the “Create” button.
 
UWP - Create Simple Application By VS 2019
 
Step 4 - Select the platform version.
 
The platform has been mentioned the minimum to target version you can make it by default. And, click “OK” for creating an application.
 
UWP - Create Simple Application By VS 2019 
 
Step 5 - Developer mode.
 
Note
After selecting the platform, if it gives any warning message, then you can follow the below instructions.
 
Here, you need to enable your system as a developer mode by doing the below instructions.
 
UWP - Create Simple Application By VS 2019
 
Go to Windows Settings >> Update & Security >> For developers >> choose Developer mode.
 
UWP - Create Simple Application By VS 2019
 
Step 6 - Creating an application.
 
Let’s create the application, double click on “MainPage.xaml” under the solution explorer.
 
Next, click on “Design” that located at the right bottom of the VS environment.
 
Then, you will see a blank design form from the main page.
 
UWP - Create Simple Application By VS 2019
 
Step 7 - Design application.
 
Under the Toolbox, drag and drop one text Box and a Button on the form window or whatever you want to add the examples you need.
 
UWP - Create Simple Application By VS 2019
 
Now the time to create a button on the UWP form, drag and drop button from the Toolbox.
 
UWP - Create Simple Application By VS 2019
 
Step 8 - Source code and Deployment.
 
There is a “XAML” button at the right bottom of the window you can click to see the .xaml source code of our application.
 
Click on “Local Machine” to deploy the application.
 
UWP - Create Simple Application By VS 2019
 
After finishing deployment, the application logo looks as given below.
 
UWP - Create Simple Application By VS 2019
 
Step 9 - App diagnostics
 
In the Diagnostic toolbox, you can see the allocated CPU and memory of our deployed application.
 
UWP - Create Simple Application By VS 2019
 

Summary

 
In this article, you learned how we create a simple Universal Window Platform application using Visual Studio 2019.
 
References
  • https://docs.microsoft.com/en-us/windows/uwp/get-started/create-a-hello-world-app-xaml-universal
  • https://docs.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-uwp?view=vs-2019
  • https://docs.microsoft.com/en-us/windows/uwp/get-started/