BindingAddPropertyEvent Method (Object, String, EventHandlerEventArgs) |
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
)
Public Shared Sub AddPropertyEvent (
obj As Object,
propertyName As String,
eh As EventHandler(Of EventArgs)
)
static member AddPropertyEvent :
obj : Object *
propertyName : string *
eh : EventHandler<EventArgs> -> unit
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