Class ReactiveObject
- 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 class ReactiveObject : IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
- Inheritance
-
Reactive
Object
- Implements
- Derived
- Extension Methods
Constructors
ReactiveObject()
Initializes a new instance of the Reactive
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
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.
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.