RxObject class¶
Defined in
Namespace: ReactiveMarbles.Mvvm
Assembly: ReactiveMarbles.Mvvm.dll
Full name: ReactiveMarbles.Mvvm.RxObject
Modifiers: public
Summary¶
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¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [RxObject](# class. |
Properties¶
| Name | Summary |
|---|---|
| ThrownExceptions | Gets a observable which will fire whenever an exception would normally terminate. internal state. |
| 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... |
| 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... |
Methods¶
| Name | Summary |
|---|---|
| AreChangeNotificationsEnabled | Determines if change notifications are enabled or not. |
| AreChangeNotificationsDelayed | Gets a value indicating whether the change notifications are delayed. |
| SuppressChangeNotifications | When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed. |
| DelayChangeNotifications | Delays notifications until the return IDisposable is disposed. |
| RaisePropertyChanging | Raises the property changing event. |
| RaisePropertyChanged | Raises the property changed event. |
| RaiseAndSetIfChanged | RaiseAndSetIfChanged 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¶
| Name | Summary |
|---|---|
| PropertyChanged | |
| PropertyChanging |