dynamic - Dynamically created custom control in wpf and it's values -


i create custom control contains root stackpanel , have 1 dependency property called param1. whenever param1 changes dynamically add stackpanel textboxes or comboboxes or mix of them.

now simulate behaviour: in window create custom control , when choose param1 ,i have ex. 3 textboxes , 2 comboboxes. fill them values example "1","2","3","4","5".

now when click button part of window, want values , use them somewhere.

what best way that?

my first idea keep these comboboxes , textboxes in 2 lists in control , later recover list , values. there must better idea doing that.

any ideas?


Comments