Oli
Oli

Reputation: 13

Assign ObservableCollection<T>.NotifiyCollectionChanged Handler to another Observable collection

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

Answers (1)

Siy Williams
Siy Williams

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

Related Questions