How to add wpf control to particular grid row and cell during runtime?
问题 I have the following grid in my WPF "Window" (yes the class Window); <Grid Name="RequiredGrid"> <Grid.ColumnDefinitions> <ColumnDefinition Width="70" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> </Grid> Depending on whats passed into the window, I want to add items into this grid one row at a time. Namely, I want to add a Label in the left column and a TextBox in the right column. I believe I know how to add new rows for holding new data by doing the following in the code