Hi,

Could anyone please point me in the right direction to do following in WPF/C#.

Lets say I have an array of strings and the number of items in the array is varying.

What is the correct way to go and create a Label and a Text box to account to each item in the array dynamically?

When above is done, how can I refer to the controls(TextBoxes) created in code?

e.g.
Lets say I have below 3 strings in the array
  1. Name
  2. Email
  3. Telphone


How do I create labels and text boxes for above three items.

And after someone has entered data in the above created text boxes, how to read them in code?

Lets say they should go into a database table in below format
TextBoxName,Value

Highly appreciate any help on this.