>
Defined in Type: ObservableListEx
Namespace: DynamicData
Assembly: DynamicData.dll
Applies to
net10.0, netstandard2.0
public static IObservable<TObject?> WhenAnyPropertyChanged<TObject>(this IObservable<IChangeSet<TObject>> source, params string[] propertiesToMonitor) where TObject : INotifyPropertyChanged
Summary:
Watches all items in the source list and emits the item when any of its properties change.
Requires TObject to implement INotifyPropertyChanged.
This is NOT a changeset operator: it returns a flat IObservable.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. Must implement INotifyPropertyChanged. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source IObservable<IChangeSet<TObject>> to observe property changes on items in. |
params propertiesToMonitor | string[] | An optional list of property names to monitor. If empty, all property changes are observed. |
Returns: IObservable
Remarks
Implemented via MergeMany. Subscriptions are managed per item: created on add, disposed on remove.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source is null. |
See also
- DynamicData.ObservableListEx.WhenPropertyChanged
2(System.IObservable{DynamicData.IChangeSet{0}},System.Linq.Expressions.Expression{System.Func{0,1}},System.Boolean) - DynamicData.ObservableListEx.WhenValueChanged
2(System.IObservable{DynamicData.IChangeSet{0}},System.Linq.Expressions.Expression{System.Func{0,1}},System.Boolean) - DynamicData.ObservableListEx.AutoRefresh
1(System.IObservable{DynamicData.IChangeSet{0}},System.Nullable{System.TimeSpan},System.Nullable{System.TimeSpan},System.Reactive.Concurrency.IScheduler) - 0,``1>[DynamicData.ObservableCacheEx.WhenAnyPropertyChanged
2(System.IObservable},System.String[])][M:DynamicData.ObservableCacheEx.WhenAnyPropertyChanged--2(System.IObservable{DynamicData.IChangeSet{--0,--1}},System.String[])]