TriggerCreateTOwner, TProperty Method |
Namespace: Lawo.ComponentModel
public static IDisposable Create<TOwner, TProperty>( IProperty<TOwner, TProperty> property, Action<IProperty<TOwner, TProperty>> handler ) where TOwner : INotifyPropertyChanged
Exception | Condition |
---|---|
ArgumentNullException | property and/or handler equal null. |
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.