WPF MVVM Creating Dynamic controls

WPF MVVM Creating Dynamic controls - I have a grid on which I have a job's (you can say something like a sql server job) details.

Now for every job there could be 'n' number of job variables. When I fetch the record for a job it gets this collection of Job variables which are Name-value pair, where value could be a collection or a datetime value or even an int or a string.

Now what I am trying to achieve here is : - Если переменная run - это datetime, мне нужен datepicker - Если это int / String, мне нужно текстовое поле - Если это коллекция, то поле со списком. -- it it is a bit field then a check box

I am not sure how to achieve it since these values can differ for every single job.

8
задан Pritesh 26 April 2011 в 11:56
поделиться