Suppose I have a grid with some row definitions, and a child control in that grid. How would I go about setting the Grid.Row property of the child control programatically?
To set the value:
textBlock.SetValue(Grid.RowProperty, 3);
To reset the value:
textBlock.SetValue(Grid.RowProperty, null);