DynamicReactiveView class¶
Attributes: [DebuggerDisplay("DynamicReactiveView: {Items}")]
Defined in
Namespace: ReactiveList.Reactive.Views Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Views.DynamicReactiveView<T> Modifiers: public sealed
Summary¶
View source (opens in a new tab)
Represents a dynamic, filtered, and observable view over a collection that updates in response to changes from an
observable data stream and supports dynamically changing filter predicates.
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Class hierarchy
classDiagram
class DynamicReactiveView~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. DynamicReactiveView~T~
class IReactiveView~DynamicReactiveView~T~, T~ {
<>
}
IReactiveView~DynamicReactiveView~T~, T~ <|.. DynamicReactiveView~T~
class IDisposable {
<>
}
IDisposable <|.. DynamicReactiveView~T~
Implements: INotifyPropertyChanged (opens in a new tab), IReactiveView
Remarks¶
DynamicReactiveView of T maintains a live, read-only collection that reflects both an initial snapshot and ongoing changes from an observable source. The view automatically rebuilds when the filter predicate changes, and applies the current filter to all incoming items. Updates are batched to optimize UI responsiveness. This class is designed for scenarios where a UI or other consumer needs to observe a collection that changes over time with dynamic filtering, such as search functionality in MVVM applications. The view raises property change notifications when its contents are updated. Thread safety is provided for UI-bound scenarios by observing updates on the specified scheduler.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the DynamicReactiveView class, providing a filtered, observable, and throttled view over a quaternary source... |
Properties¶
| Name | Summary |
|---|---|
| BatchResetLimit | Gets or sets the size above which one applied batch raises a single reset instead of one notification per item. |
| Items | Gets a read-only, observable collection of items of type T. |
Methods¶
| Name | Summary |
|---|---|
| ToProperty | Assigns the current collection of items to a property using the specified setter action. |
| Dispose | Releases all resources used by the current instance of the class. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | Occurs when a property value changes. |
Inherited members
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)