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

ParameterViewModel Class

Summary

View model to test passing parameters.
graph BT Type-->Base0["ReactiveObject"] click Base0 "/api/ReactiveUI/ReactiveObject" Base0-->Base1["object"] Type-.->Interface0["IReactiveNotifyPropertyChanged<IReactiveObject>"] Type-.->Interface1["IHandleObservableErrors"] click Interface1 "/api/ReactiveUI/IHandleObservableErrors" Type-.->Interface2["IReactiveObject"] click Interface2 "/api/ReactiveUI/IReactiveObject" Type-.->Interface3["INotifyPropertyChanged"] Type-.->Interface4["INotifyPropertyChanging"] Type-.->Interface5["IEnableLogger"] click Interface5 "/api/Splat/IEnableLogger" Type-.->Interface6["INavigable"] click Interface6 "/api/Sextant/INavigable" Type-.->Interface7["IViewModel"] click Interface7 "/api/Sextant/IViewModel" Type-.->Interface8["INavigated"] click Interface8 "/api/Sextant/INavigated" Type-.->Interface9["INavigating"] click Interface9 "/api/Sextant/INavigating" Type-.->Interface10["IDestructible"] click Interface10 "/api/Sextant/IDestructible" Type["ParameterViewModel"] class Type type-node

Syntax

public class ParameterViewModel : ReactiveObject, IReactiveNotifyPropertyChanged<IReactiveObject>, 
    IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, 
    IEnableLogger, INavigable, IViewModel, INavigated, INavigating, IDestructible

Events

Name Type Summary
PropertyChanged PropertyChangedEventHandler?
Inherited from ReactiveObject
PropertyChanging PropertyChangingEventHandler?
Inherited from ReactiveObject

Properties

Name Value Summary
Changed IObservable<IReactivePropertyChangedEventArgs<IReactiveObject>>
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.
Inherited from ReactiveObject
Changing IObservable<IReactivePropertyChangedEventArgs<IReactiveObject>>
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.
Inherited from ReactiveObject
Disposable CompositeDisposable
Gets the disposable.
Id string
Gets the ID of the page.
Meaning int
Gets or sets the meaning.
Text string?
Gets or sets the text.
ThrownExceptions IObservable<Exception>
Gets a observable which will fire whenever an exception would normally terminate ReactiveUI internal state.
Inherited from ReactiveObject

Methods

Name Value Summary
AreChangeNotificationsEnabled() bool
Determines if change notifications are enabled or not.
Inherited from ReactiveObject
DelayChangeNotifications() IDisposable
Delays notifications until the return IDisposable is disposed.
Inherited from ReactiveObject
Destroy() void
Destroy the destructible object.
SuppressChangeNotifications() IDisposable
When this method is called, an object will not fire change notifications (neither traditional nor Observable notifications) until the return value is disposed.
Inherited from ReactiveObject
WhenNavigatedFrom(INavigationParameter) IObservable<Unit>
An observable sequence that notifies subscribers this item was navigated from.
WhenNavigatedTo(INavigationParameter) IObservable<Unit>
An observable sequence that notifies subscribers this item was navigated to.
WhenNavigatingTo(INavigationParameter) IObservable<Unit>
Whens the navigating to.

Extension Methods

Name Value Summary
AutoPersist<ParameterViewModel, TDontCare>(Func<ParameterViewModel, IObservable<Unit>>, IObservable<TDontCare>, TimeSpan?) IDisposable
AutoPersist allows you to automatically call a method when an object has changed, throttling on a certain interval. Note that this object must mark its persistable properties via the [DataMember] attribute. Changes to properties not marked with DataMember will not trigger the object to be saved.
AutoPersist<ParameterViewModel>(Func<ParameterViewModel, IObservable<Unit>>, TimeSpan?) IDisposable
AutoPersist allows you to automatically call a method when an object has changed, throttling on a certain interval. Note that this object must mark its persistable properties via the [DataMember] attribute. Changes to properties not marked with DataMember will not trigger the object to be saved.
BindCommand<ParameterViewModel, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ParameterViewModel, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ParameterViewModel, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ParameterViewModel, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ParameterViewModel, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ParameterViewModel, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<ParameterViewModel, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<ParameterViewModel, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<ParameterViewModel, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ParameterViewModel, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ParameterViewModel, TViewModel, TViewProperty>(TViewModel?, Expression<Func<ParameterViewModel, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<ParameterViewModel, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<ParameterViewModel, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<ParameterViewModel, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ParameterViewModel, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ParameterViewModel, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ParameterViewModel, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
Log<ParameterViewModel>() IFullLogger
Call this method to write log entries on behalf of the current class.
From LogHost
RaiseAndSetIfChanged<ParameterViewModel, TRet>(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.
RaisePropertyChanged<ParameterViewModel>(string?) void
Use this method in your ReactiveObject classes when creating custom properties where raiseAndSetIfChanged doesn't suffice.
RaisePropertyChanging<ParameterViewModel>(string?) void
Use this method in your ReactiveObject classes when creating custom properties where raiseAndSetIfChanged doesn't suffice.
SubscribePropertyChangedEvents<ParameterViewModel>() void
Use this method for enabling classic PropertyChanged events when you are implementing IReactiveObject manually.
SubscribePropertyChangingEvents<ParameterViewModel>() void
Use this method for enabling classic PropertyChanging events when you are implementing IReactiveObject manually.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Expression<Func<ParameterViewModel, IObservable<T8>?>>, Expression<Func<ParameterViewModel, IObservable<T9>?>>, Expression<Func<ParameterViewModel, IObservable<T10>?>>, Expression<Func<ParameterViewModel, IObservable<T11>?>>, Expression<Func<ParameterViewModel, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Expression<Func<ParameterViewModel, IObservable<T8>?>>, Expression<Func<ParameterViewModel, IObservable<T9>?>>, Expression<Func<ParameterViewModel, IObservable<T10>?>>, Expression<Func<ParameterViewModel, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Expression<Func<ParameterViewModel, IObservable<T8>?>>, Expression<Func<ParameterViewModel, IObservable<T9>?>>, Expression<Func<ParameterViewModel, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Expression<Func<ParameterViewModel, IObservable<T8>?>>, Expression<Func<ParameterViewModel, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Expression<Func<ParameterViewModel, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Expression<Func<ParameterViewModel, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Expression<Func<ParameterViewModel, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4, T5>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Expression<Func<ParameterViewModel, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3, T4>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Expression<Func<ParameterViewModel, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2, T3>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Expression<Func<ParameterViewModel, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet, T1, T2>(Expression<Func<ParameterViewModel, IObservable<T1>?>>, Expression<Func<ParameterViewModel, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ParameterViewModel, TRet>(Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>, Expression<Func<ParameterViewModel, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<ParameterViewModel, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.

See Also