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

CreatesCommandBindingViaEvent Class

Summary

This binder is the default binder for connecting to arbitrary events.
Namespace
ReactiveUI
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["ICreatesCommandBinding"] click Interface0 "/api/ReactiveUI/ICreatesCommandBinding" Type["CreatesCommandBindingViaEvent"] class Type type-node

Syntax

public class CreatesCommandBindingViaEvent : ICreatesCommandBinding

Methods

Name Value Summary
BindCommandToObject(ICommand?, object?, IObservable<object?>) IDisposable?
Bind an ICommand to a UI object, in the "default" way. The meaning of this is dependent on the implementation. Implement this if you have a new type of UI control that doesn't have Command/CommandParameter like WPF or has a non-standard event name for "Invoke".
BindCommandToObject<TEventArgs>(ICommand?, object?, IObservable<object?>, string) IDisposable?
Bind an ICommand to a UI object to a specific event. This event may be a standard .NET event, or it could be an event derived in another manner (i.e. in MonoTouch).
GetAffinityForObject(Type, bool) int
Returns a positive integer when this class supports BindCommandToObject for this particular Type. If the method isn't supported at all, return a non-positive integer. When multiple implementations return a positive value, the host will use the one which returns the highest value. When in doubt, return '2' or '0'.

Extension Methods

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