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

ObservableTriggerBehavior Class

Summary

Behavior that response to triggered observables.
Namespace
ReactiveUI.Blend
Interfaces
  • IBehavior
  • IDisposable
Base Types
  • DependencyObject
  • Behavior<DependencyObject>
graph BT Type-->Base0["Behavior<DependencyObject>"] Base0-->Base1["DependencyObject"] Type-.->Interface0["IBehavior"] Type-.->Interface1["IDisposable"] Type["ObservableTriggerBehavior"] class Type type-node

Syntax

[ContentProperty(Name = "Actions")]
public sealed class ObservableTriggerBehavior : Behavior<DependencyObject>, IBehavior, IDisposable

Attributes

Type Description
ContentProperty

Constructors

Name Summary
ObservableTriggerBehavior() Initializes a new instance of the ObservableTriggerBehavior class.

Fields

Name Constant Value Summary
ActionsProperty
The actions dependency property.
static
ObservableProperty
The observable dependency property.
static
SourceObjectProperty
The source object dependency property.
static

Properties

Name Value Summary
Actions ActionCollection
Gets the actions.
AutoResubscribeOnError bool
Gets or sets a value indicating whether [automatic resubscribe on error].
Observable IObservable<object>
Gets or sets the observable.
SourceObject object
Gets or sets the source object.

Methods

Name Value Summary
Dispose() void
OnAttached() void
Called when [attached].
OnDetaching() void
Called when [detaching].

Extension Methods

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