IReactiveNotifyPropertyChanged
trait · ferroui-reactiveui · v0.5.0
trait IReactiveNotifyPropertyChanged<S>
An object whose property changes are observables as well as events
(IReactiveNotifyPropertyChanged<TSender>).
Every reactive object implements it through its shared handle: for vm: Rc<T> with
T: IReactiveObject, vm.changing() and vm.changed() are observables whose arguments carry
vm as the sender. The trait is also exported as
ReactiveObjectRcExt.
Deviation (DEVIATIONS.md, ReactiveUI): the arguments are the concrete
ReactivePropertyChangedEventArgs rather than the interface; the sender is the shared handle
of the object.
Members
changing
fn changing(self: &Self) -> Rc<dyn IObservable<ReactivePropertyChangedEventArgs<S>>>
Fires when a property is about to change, before its value is stored (Changing). The
notifications follow the suppression and the delay of the object.
changed
fn changed(self: &Self) -> Rc<dyn IObservable<ReactivePropertyChangedEventArgs<S>>>
Fires when a property has changed (Changed).
suppress_change_notifications
fn suppress_change_notifications(self: &Self) -> Rc<dyn IDisposable>
Stops both the events and the observables of the changes until the result is disposed
(SuppressChangeNotifications); the calls nest.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.