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

ObservableTrigger Class

Summary

A blend based trigger which will be activated when a IObservable triggers.
Namespace
ReactiveUI.Blend
Base Types
  • TriggerBase<FrameworkElement>
graph BT Type-->Base0["TriggerBase<FrameworkElement>"] Type["ObservableTrigger"] class Type type-node

Syntax

public class ObservableTrigger : TriggerBase<FrameworkElement>

Fields

Name Constant Value Summary
ObservableProperty
The dependency property registration for the Observable property.
static

Properties

Name Value Summary
AutoResubscribeOnError bool
Gets or sets a value indicating whether to resubscribe the trigger if there is a error when running the IObservable.
Observable IObservable<object>
Gets or sets the observable which will activate the trigger.

Methods

Name Value Summary
OnObservableChanged(DependencyObject, DependencyPropertyChangedEventArgs) void
Called when [observable changed].
static

Extension Methods

Name Value Summary
BindCommand<ObservableTrigger, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableTrigger, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservableTrigger, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableTrigger, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<ObservableTrigger, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<ObservableTrigger, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<ObservableTrigger, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<ObservableTrigger, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<ObservableTrigger, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableTrigger, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableTrigger, TViewModel, TViewProperty>(TViewModel?, Expression<Func<ObservableTrigger, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<ObservableTrigger, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<ObservableTrigger, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<ObservableTrigger, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<ObservableTrigger, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservableTrigger, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<ObservableTrigger, 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.
WhenAnyObservable<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, IObservable<T7>?>>, Expression<Func<ObservableTrigger, IObservable<T8>?>>, Expression<Func<ObservableTrigger, IObservable<T9>?>>, Expression<Func<ObservableTrigger, IObservable<T10>?>>, Expression<Func<ObservableTrigger, IObservable<T11>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, IObservable<T7>?>>, Expression<Func<ObservableTrigger, IObservable<T8>?>>, Expression<Func<ObservableTrigger, IObservable<T9>?>>, Expression<Func<ObservableTrigger, IObservable<T10>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, IObservable<T7>?>>, Expression<Func<ObservableTrigger, IObservable<T8>?>>, Expression<Func<ObservableTrigger, IObservable<T9>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, IObservable<T7>?>>, Expression<Func<ObservableTrigger, IObservable<T8>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, IObservable<T7>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, IObservable<T6>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, IObservable<T5>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4, T5>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, IObservable<T4>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3, T4>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, IObservable<T3>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2, T3>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Expression<Func<ObservableTrigger, 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<ObservableTrigger, TRet, T1, T2>(Expression<Func<ObservableTrigger, IObservable<T1>?>>, Expression<Func<ObservableTrigger, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<ObservableTrigger, TRet>(Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>, Expression<Func<ObservableTrigger, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<ObservableTrigger, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.