Click or drag to resize

BindingAddPropertyEventT, TProperty Method (T, ExpressionFuncT, TProperty, EventHandlerEventArgs)

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

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static void AddPropertyEvent<T, TProperty>(
	T obj,
	Expression<Func<T, TProperty>> propertyExpression,
	EventHandler<EventArgs> eh
)

Parameters

obj
Type: T
INotifyPropertyChanged object to attach the event handler to
propertyExpression
Type: System.Linq.ExpressionsExpressionFuncT, TProperty
Expression to the property to trigger the changed event.
eh
Type: SystemEventHandlerEventArgs
Event handler delegate to trigger when the specified property changes

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Eto.Forms.Binding.AddPropertyEvent``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}},System.EventHandler{System.EventArgs})"]

TProperty

[Missing <typeparam name="TProperty"/> documentation for "M:Eto.Forms.Binding.AddPropertyEvent``2(``0,System.Linq.Expressions.Expression{System.Func{``0,``1}},System.EventHandler{System.EventArgs})"]

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