Skip to content

RxObject class

Defined in

Namespace: ReactiveMarbles.Mvvm Assembly: ReactiveMarbles.Mvvm.dll Full name: ReactiveMarbles.Mvvm.RxObject Modifiers: public

Summary

View source

RxObject is the base object for ViewModel classes, and it implements INotifyPropertyChanged. In addition, RxObject provides Changing and Changed Observables to monitor object changes.

Applies to

net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0

Class hierarchy
classDiagram
class RxObject
class IRxObject {
    <>
}
IRxObject <|.. RxObject
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. RxObject
class INotifyPropertyChanging {
    <>
}
INotifyPropertyChanging <|.. RxObject
class IThrownExceptions {
    <>
}
IThrownExceptions <|.. RxObject

Implements: IRxObject, INotifyPropertyChanged, INotifyPropertyChanging, IThrownExceptions

Constructors

NameSummary
.ctorInitializes a new instance of the [RxObject](# class.

Properties

NameSummary
ThrownExceptionsGets a observable which will fire whenever an exception would normally terminate. internal state.
ChangingGets 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...
ChangedGets 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...

Methods

NameSummary
AreChangeNotificationsEnabledDetermines if change notifications are enabled or not.
AreChangeNotificationsDelayedGets a value indicating whether the change notifications are delayed.
SuppressChangeNotificationsWhen this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
DelayChangeNotificationsDelays notifications until the return IDisposable is disposed.
RaisePropertyChangingRaises the property changing event.
RaisePropertyChangedRaises the property changed event.
RaiseAndSetIfChangedRaiseAndSetIfChanged fully implements a Setter for a read-write property on a ReactiveObject, using CallerMemberName to raise the notification and the ref to the backing...

Events

NameSummary
PropertyChanged
PropertyChanging

Derived types

Inherited members