Hi,
I vaguely remember something about the INotifyCollectionChanged interface being removed from CSLA, just wondering if that included Silverlight.
If it is removed does that stop the ability to update the model's properties and expect the UI to reflect the changed values?
Cheers
Jeremy
The INotifyCollectionChanged interface wasn't "removed" exactly. It conflicts with the older IBindingList interface, because both interfaces define a changed event.
Web Forms and Windows Forms know nothing about INotifyCollectionChanged of course, because it was introduced by WPF. If you want objects that work with WPF and with Web Forms and Windows Forms, then you must stick with IBindingList. Since CSLA supports all these technologies, the choice is clear.
Silverlight is a different story, because it isn't .NET and doesn't have the .NET history. Due to this, there is no IBindingList in Silverlight, and no need to worry about supporting it even if there was such a thing. So the collection base types in CSLA .NET for Silverlight do implement INotifyCollectionChanged, because that's the interface that makes sense on the Silverlight platform.
The whole point, at the end of the day, is to have CSLA support all the odd-ball data binding interfaces so you don't have to, and for the most part that's the case today.
However, if you look back through the forum a month or so, you'll find a thread I started to discuss the very real conflict between WPF and the rest of .NET in terms of collections. To really work nicely with WPF, your collection can't work with the other technologies, and visa versa. That's nasty, and it is unfortunate that Microsoft put us in this position...
And that's in addition to the fact that WPF interprets PropertyChanged differently, and it interprets Equals() differently. The PropertyChanged difference is annoying, but they actually are doing the right thing (and the older technologies do the wrong thing). But the Equals() issue is a total PITA, and I think they are fundamentally wrong in how they use it.
greengumby:Rocky on another off topic question. Im from Perth, Australia (GMT +8) and notice that your forums go down at around 2pm to 4pm everyday. Is this normal?
Copyright (c) Marimer LLC