Skip to content

[Feature]: ReactiveUI.Fody [ReactiveCollection] attribute for adding change notifications from collections #3302

@MGRussell

Description

@MGRussell

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions