Develop Apps For Windows 10

Introduction

Windows 10 is evolving at a rapid pace technology nowadays. In this article we are going to learn some basic things of windows 10 application development.

Universal Windows Platform provide the common application platform and lets the developers build apps available on all the devices that runs on Windows 10.

In this part we are going to see the requirements for developing windows 10 application and SDK used to develop windows 10 apps.

Hardware Requirements

  • RAM: More than 4GB
  • Hard Disk: Minimum 12GB Free space
  • Virtual machine in Hyper-V

Software Requirements

  • OS: Windows 10 64-bit (Microsoft Recommended)
  • Microsoft Visual Studio 2015 pro or community (Community edition is free)
  • Writing your first Windows 10 application
  • Windows 10 Emulator

In this article, create a new UWP project from the Blank App template with C# language and then deploy to run the app on Local Machine and Windows Mobile Emulator.

After successful installation (If you face problem in installation contact me). Start Visual Studio 2015 and select new project to create new windows 10 application. Name it “HelloWorldWin10” or as your wish like shown below.

Click Ok to create new app. Now you can see your app like the following screenshot:

create new app

Open the Mainpage.Xaml file in Visual Studio and add TextBlock in the existing grid. Set the Text property of the TextBlock to Hello World Windows 10  like the following code.

  1. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">  
  2.    <TextBlock Margin="79,272,109,335">Welcome to Windows 10</TextBlock>  
  3. </Grid>  
Now time to run the app, by default, you will see that the solution is set to Debug and the platform is set to x86. The Start Debugging button will also be set to “Local Machine” by default.
x86 will work for both mobile emulator and local machine. If you want to run this on the Windows Mobile device, you will have to set this as “Mobile Emulator”.

Click the Start Debugging button with the “Local Machine” option to deploy to run the app on the local machine.

In design time itself you can see the different device view looks like the following:

design

Now see the output for different device deployment.

Windows 10 Mobile

Windows 10 Mobile

Windows 10 Tab

Windows 10 Tab

Windows 10 Desktop

Windows 10 Desktop

Source Code.

 


Similar Articles