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

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.

Return Value

Type Description
IDisposable The binding from event.