WPF Dynamically Added Controls and Getting Values

Today’s challenge was fun.
I had added a bunch of textboxes and labels to a Grid with 2 StackPanel in my code behind.

StackPanel sp1 = new StackPanel();
StackPanel sp2 = new StackPanel();
Grid g = new Grid();
ColumnDefinition colDef1 = new ColumnDefinition {Width [...]