Prerequisites
- Visual Studio 2015
A flexible grid area that consists of columns and rows. Child elements of the Grid are measured and arranged according to their row/column assignments (set by using Grid.Row and Grid.Column attached properties) and other logic.
Syntax
- <Grid ...>
- oneOrMoreUIElements
- </Grid>
- -or-
- <Grid ../>
- Grid.Column
- Grid.ColumnSpan
- Grid.Row
- Grid.RowSpan
Now let's get started with the following steps,
Step 1 - Create Windows Universal Project
Open Visual Studio 2015 and Click File -> New -> Project Option for New Universal App.

Step 2 - Giving the Project Name
Then, New Project Window will open, there you can select an Installed -> Template -> Visual C# -> Windows -> Universal and select a Blank App (Universal Windows).
Type Project Name GridApp and click the OK button,

Step 3 - Setting the platform Versions
Here, we choose the Target Version and Minimum Version for our Universal Windows application and click OK button,

Step 4 - Choose Designer Window
Now we go to the Solution Explore select MainPage.xaml,

Step 5 - Add the Coding
Add the following code for the stack Panel control in MainPage.xaml. Add the following code.




Join the conversation! Your thoughts help the community grow.