Class ReactiveRecord
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
ReactiveObject is the base object for ViewModel classes, and it implements INotifyPropertyChanged. In addition, ReactiveObject provides Changing and Changed Observables to monitor object changes.
[DataContract]
public record ReactiveRecord : IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger, IEquatable<ReactiveRecord>
- Inheritance
-
Reactive
Record
- Implements
- Extension Methods
Constructors
ReactiveRecord()
Initializes a new instance of the Reactive
ReactiveRecord(ReactiveRecord)
Parameters
original
ReactiveRecord
Properties
Changed
Gets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
[IgnoreDataMember]
[JsonIgnore]
[Browsable(false)]
[Display(Order = -1, AutoGenerateField = false, AutoGenerateFilter = false)]
public IObservable<IReactivePropertyChangedEventArgs<IReactiveObject>> Changed { get; }
Property Value
Changing
Gets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple times.
[IgnoreDataMember]
[JsonIgnore]
[Browsable(false)]
[Display(Order = -1, AutoGenerateField = false, AutoGenerateFilter = false)]
public IObservable<IReactivePropertyChangedEventArgs<IReactiveObject>> Changing { get; }
Property Value
EqualityContract
Property Value
ThrownExceptions
Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.
[IgnoreDataMember]
[JsonIgnore]
[Browsable(false)]
[Display(Order = -1, AutoGenerateField = false, AutoGenerateFilter = false)]
public IObservable<Exception> ThrownExceptions { get; }
Property Value
Methods
AreChangeNotificationsEnabled()
Determines if change notifications are enabled or not.
Returns
- bool
A value indicating whether change notifications are enabled.
DelayChangeNotifications()
Delays notifications until the return IDisposable is disposed.
Returns
- IDisposable
A disposable which when disposed will send delayed notifications.
Equals(ReactiveRecord?)
Parameters
other
ReactiveRecord
Returns
Equals(object?)
Parameters
obj
object
Returns
GetHashCode()
Returns
PrintMembers(StringBuilder)
Parameters
builder
StringBuilder
Returns
SuppressChangeNotifications()
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
Returns
- IDisposable
An object that, when disposed, reenables change notifications.
ToString()
Returns
Events
PropertyChanged
Event Type
PropertyChanging
Event Type
Operators
operator ==(ReactiveRecord?, ReactiveRecord?)
Parameters
left
ReactiveRecord right
ReactiveRecord
Returns
operator !=(ReactiveRecord?, ReactiveRecord?)
Parameters
left
ReactiveRecord right
ReactiveRecord