The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IReactiveObjectExtensions Class

Summary

Extension methods associated with the IReactiveObject interface.
Namespace
ReactiveUI
Base Types
  • object
graph BT Type-->Base0["object"] Type["IReactiveObjectExtensions"] class Type type-node

Syntax

[Preserve(AllMembers = true)]
public static class IReactiveObjectExtensions

Attributes

Type Description
PreserveAttribute

Methods

Name Value Summary
RaiseAndSetIfChanged<TObj, TRet>(TObj, TRet, TRet, string) TRet
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 field to set the property.
static
RaisePropertyChanged<TSender>(TSender, string) void
Use this method in your ReactiveObject classes when creating custom properties where raiseAndSetIfChanged doesn't suffice.
static
RaisePropertyChanging<TSender>(TSender, string) void
Use this method in your ReactiveObject classes when creating custom properties where raiseAndSetIfChanged doesn't suffice.
static
SubscribePropertyChangedEvents<TSender>(TSender) void
Use this method for enabling classic PropertyChanged events when you are implementing IReactiveObject manually.
static
SubscribePropertyChangingEvents<TSender>(TSender) void
Use this method for enabling classic PropertyChanging events when you are implementing IReactiveObject manually.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.