Introduction
In this article, you will learn how to develop background image in Univesal Windows Platform Application, using XAML and C sharp program.
In this article, you will learn how to develop background image in Univesal Windows Platform Application, using XAML and C sharp program.
Requirements - Visual Studio 2015 Update 3.
Step 1 - Open Visual Studio 2015 Update 3 and open the new project.The shortcut key, which can be used is Ctrl+Shift+N.

Step 2 - Now, we can choose Visual C# and you can select the platform in Windows. Afterwards, you can choose Universal Windows Platform Application. We can select Blank app(Universal Windows) and you go to type the your project name. Click "OK" button.
Step 1 - Open Visual Studio 2015 Update 3 and open the new project.The shortcut key, which can be used is Ctrl+Shift+N.

Step 2 - Now, we can choose Visual C# and you can select the platform in Windows. Afterwards, you can choose Universal Windows Platform Application. We can select Blank app(Universal Windows) and you go to type the your project name. Click "OK" button.

Step 3 - Here, we can choose the Target version and minimum version. Click "OK" button.


Step 4 - Here, open the .cs file and you can go to MainPage.xaml. You will see the design page and afterwards, you choose device scale. It is like that 5" Phone(1920*1080) 300% scale.


Step 5 - Now, you go to Assets and select Add. Afterwards, choose the Existing item. We can go to files and you will choose your project images. Click the open button and file is added.



Step 6 - Go to XAML page and you need to write the image source code. You can save the program.


Step 7 - Now, we should run and choose the machines. It is like local machine, remote Machine and so on.The shortcut key is F5.

Step 8 - Now, the project is deployed and executed. Afterwards, you can see the output, as shown below-



Join the conversation! Your thoughts help the community grow.