Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

add row and columns to grid wpf in code

TheGrid.RowDefinitions.Add(new RowDefinition());
var uc = new MyUserControl();
TheGrid.Children.Add(uc);
Grid.SetRow(uc, TheGrid.RowDefinitions.Count - 1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #row #columns #grid #wpf #code
ADD COMMENT
Topic
Name
7+1 =