Grid layout defines an area where you can position child controls or elements in rows and columns.
Grid layout is used to display the controls independently in the form of rows and columns.
When we use grid in the form of rows and columns, we need to use row definitions and column definitions along with grid.
Row definitions is used to divide the grid into number of rows.
Column definitions is used to divide the grid in to number of columns.
In general, how many rows are there that many row definitions tags will be create, how many columns are their that many column definition tags are tags are created with in the grid.
Example with grid panel:
Create a new window, with in the window by default grid layout is generated.
Now go to xaml source and write the following code: