Click or drag to resize
TriggerCreateTOwner, TProperty Method
Creates a trigger such that handler is called whenever Value has changed.

Namespace: Lawo.ComponentModel
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public static IDisposable Create<TOwner, TProperty>(
	IProperty<TOwner, TProperty> property,
	Action<IProperty<TOwner, TProperty>> handler
)
where TOwner : INotifyPropertyChanged

Parameters

property
Type: Lawo.ReflectionIPropertyTOwner, TProperty
handler
Type: SystemActionIPropertyTOwner, TProperty

Type Parameters

TOwner
The type of the owner object.
TProperty
The type of the property.

Return Value

Type: IDisposable
Exceptions
ExceptionCondition
ArgumentNullExceptionproperty and/or handler equal null.
Remarks

Call Dispose on the returned object to stop having handler called.

If the trigger is intended to be permanent it is permissible to to never call Dispose.

See Also