Here is part of my code
chartGrid.RowDefinitions.Add(new System.Windows.Controls.RowDefinition()); chartGrid.RowDefinitions.Add(new System.Windows.Controls.RowDefinition()); if (chartGrid.RowDefinitions.Count == 2) { chartGrid.RowDefinitions.Add(new System.Windows.Controls.RowDefinition()); addedFirstRow = true; } // shift existing row sizes 2 down for (int i = chartGrid.RowDefinitions.Count - 1; i > 1; i--) chartGrid.RowDefinitions[i].Height = chartGrid.RowDefinitions[i - 2].Height; chartGrid.RowDefinitions[0].Height = new GridLength(28); // spacing row chartGrid.RowDefinitions[1].Height = new GridLength(3);
Any idea ?
Thanks
Comment