Summary
Creates a commands binding from event and a property.
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. |