I have a class who is used by Silverlight though RIA Services and who contains the [DataContract] and on its properties [DataMember].
That class is also used by my WPF Application and i have a List<myClass> which i want to bind it on ListBox.
The problem is when i bind the list, when i select an item in my listbox, the first item is always selected and the right-click doesn't work properly.
In fact, the behavior of UI is weird and badly refreshed.
But, before, the class didn't have DataContract/DataMember attributes and it worked fine.
Do you know, a workaround to continue to use that class and avoid to create an other class specially for databind ?
View Complete Post