You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [Reactive] attribute in Fody is extremely handy for reducing boiler plate and clutter, but does not have a comparable partner for observable collections. Would it be reasonable to add a [ReactiveCollection] attribute that results in similar notifications for collection changes?
One implementation idea may be to tie such notifications into a change notification on the property itself, so that if the list is recreated it will continue to deliver notifications: this.WhenAnyValue(x => x.SomeObservableCollection).Do(x => x.CollectionChanged += (_,_) => this.RaisePropertyChanged(nameof(SomeObservableCollection))).Subscribe(); . This would then be added into any constructor which is not called by another constructor.
The text was updated successfully, but these errors were encountered:
The
[Reactive]
attribute in Fody is extremely handy for reducing boiler plate and clutter, but does not have a comparable partner for observable collections. Would it be reasonable to add a[ReactiveCollection]
attribute that results in similar notifications for collection changes?One implementation idea may be to tie such notifications into a change notification on the property itself, so that if the list is recreated it will continue to deliver notifications:
this.WhenAnyValue(x => x.SomeObservableCollection).Do(x => x.CollectionChanged += (_,_) => this.RaisePropertyChanged(nameof(SomeObservableCollection))).Subscribe();
. This would then be added into any constructor which is not called by another constructor.The text was updated successfully, but these errors were encountered: