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

[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1011:Closing square brackets should be spaced correctly", Justification = "nullable object array.")]
protected static IDisposable ForEvent(ICommand command, object target, IObservable<object> commandParameter, string eventName, PropertyInfo enabledProperty)

Attributes

Type Description
SuppressMessageAttribute

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.