Tag Archives: XAML

How to add rows and columns to a WPF Grid programmatically

Introduction In this post we will see how to add rows and columns to a Grid in WPF programmatically using code behind. After adding rows and columns to the Grid, we will add some Buttons to it. We will set background of these buttons to random colors using RandomColor class created in my last article… Read More »