FlexibleCommandBinder.

ForEvent(ICommand, object, IObservable<object>, string, PropertyInfo) Method

Summary

Creates a commands binding from event and a property.
Namespace
ReactiveUI
Containing Type
FlexibleCommandBinder

Syntax

protected static IDisposable ForEvent(ICommand command, object target, IObservable<object> commandParameter, string eventName, PropertyInfo enabledProperty)

Parameters

Name Type Description
command ICommand Command.
target object Target.
commandParameter IObservable<object> Command parameter.
eventName string Event name.
enabledProperty PropertyInfo Enabled property name.

Return Value

Type Description
IDisposable The binding from event.