Programmatically use the positioning methods of Grid : Grid « Windows Presentation Foundation « VB.Net Tutorial
Dynamically add Button to a Grid and add Action listener : Grid « Windows Presentation Foundation « VB.Net Tutorial
Dynamically add Button to a Grid and add Action listener : Grid « Windows Presentation Foundation « VB.Net Tutorial
![c# - WPF: How to dynamically create a grid with x rows and y columns with consecutive numbers - Stack Overflow c# - WPF: How to dynamically create a grid with x rows and y columns with consecutive numbers - Stack Overflow](https://i.stack.imgur.com/VTW5l.png)