TheGrid.RowDefinitions.Add(new RowDefinition()); var uc = new MyUserControl(); TheGrid.Children.Add(uc); Grid.SetRow(uc, TheGrid.RowDefinitions.Count - 1);