I have a MainGrid in Wpf (not a DataGrid) it has 3 rows(0.1 and 2) i have made rows using xaml at design time now at run time behind a menu button i want to add 2 column to row 1 of the main grid.
The hard part is that only break the row 1 into 2 columnn and not the whole Grid.
i know that to add new rows and columns one can use rowdefination and columndefination but
couldnt find anything here:
MainGrid.RowDefinitions.ElementAt(1).SetValue...;
Thanks