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

ICreatesCommandBinding Interface

Summary

Classes that implement this interface and registered inside Splat will be used to potentially provide binding to a ICommand in the ViewModel to a Control in the View.
graph BT Type["ICreatesCommandBinding"] class Type type-node Implementing0["CreatesCommandBindingViaEvent"]-.->Type click Implementing0 "/api/ReactiveUI/CreatesCommandBindingViaEvent" Implementing1["FlexibleCommandBinder"]-.->Type click Implementing1 "/api/ReactiveUI/FlexibleCommandBinder" Implementing2["TargetActionCommandBinder"]-.->Type click Implementing2 "/api/ReactiveUI/TargetActionCommandBinder" Implementing3["AndroidCommandBinders"]-.->Type click Implementing3 "/api/ReactiveUI/AndroidCommandBinders" Implementing4["CreatesCommandBindingViaCommandParameter"]-.->Type click Implementing4 "/api/ReactiveUI/CreatesCommandBindingViaCommandParameter" Implementing5["UIKitCommandBinders"]-.->Type click Implementing5 "/api/ReactiveUI/UIKitCommandBinders" Implementing6["CreatesWinformsCommandBinding"]-.->Type click Implementing6 "/api/ReactiveUI.Winforms/CreatesWinformsCommandBinding"

Syntax

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