Click or drag to resize

BindingAddPropertyEvent Method (Object, String, EventHandlerEventArgs)

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: SystemObject
INotifyPropertyChanged object to attach the event handler to
propertyName
Type: SystemString
Name of the property to trigger the changed event.
eh
Type: SystemEventHandlerEventArgs
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 DelegateBindingT, TValue to attach to property notified events instead of singular events.
See Also