Reputation: 13
I have an ObservableCollection<TEntity>
that is created in class A and its NotifyCollectionChanged event is wired to a event handler in static class B and passed to class C.
In class C I use the Linq .Cast
extension method to create a new ObservableCollection<TInterface>
based on the original.
Is there a way to assign ObservableCollection<TEntity>.NotifiyCollectionChanged
event handler to ObservableCollection<TInterface>.NotifiyCollectionChanged
?
Note: This is Silverlight 4 code
Upvotes: 1
Views: 331
Reputation: 2446
Are you trying to automatically update one collection when another one changes?
If so Continous LINQ or Bindable LINQ may help you out?
Upvotes: 1