I am working on wpf PropertyGrid(PG) control and I want the PG to support collection type(IList, ObservableCollection etc.) properties. I am bit confused on how to keep track of selected item(of that collection) and pass that to client.
Any ideas?
If the solution makes use of the Open Source WPF PropertyGrid (http://www.codeplex.com/wpg) I will implement the changes /additions back into the control.
No answers proves that there is no straight forward way of doing this. So I implemented this feature this way –
I created an attribute named
RelatedItemSourcePropertyAttributelike this –this attribute will take the property name of the related item source property(whose value will be used to fill the dropdown). It will be used like this –
and then in property I binded the related item source property with the combobox.
Hope to see a better solution then this 🙂