Click or drag to resize

Binding.AddPropertyEvent Method (Object, String, EventHandler<EventArgs>)

Adds an event handler for a specified propertyName of a INotifyPropertyChanged object.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static void AddPropertyEvent(
	Object obj,
	string propertyName,
	EventHandler<EventArgs> eh
)

Parameters

obj
Type: System.Object
INotifyPropertyChanged object to attach the event handler to
propertyName
Type: System.String
Name of the property to trigger the changed event.
eh
Type: System.EventHandler<EventArgs>
Event handler delegate to trigger when the specified property changes
Remarks
This can be used to translate an INotifyPropertyChanged event for a particular property to a single event. Typically, this would be used when creating a DelegateBinding<T, TValue> to attach to property notified events instead of singular events.
See Also