After implementing the propsed code from here:
Cannot bind ObservableCollection to List dp from xaml
I found out that if I had several instances of the control in the same page, the IList recieved all the values given to all the controls. I read online that in order to solve this, one must write:
SetValue(...) in the constructor.
This causes the Setter that is shown in above link not to work. (I guess that is because this time we need the IList to be static and not per-instance).
Please help! Thanks
Use SetCurrentValue instead of SetValue.
来源:https://stackoverflow.com/questions/17007491/cannot-bind-dependencyproperty-of-type-ilist-from-both-xaml-and-setter