BindingAddPropertyEventT, TProperty Method (T, ExpressionFuncT, TProperty, EventHandlerEventArgs) |
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
)
Public Shared Sub AddPropertyEvent(Of T, TProperty) (
obj As T,
propertyExpression As Expression(Of Func(Of T, TProperty)),
eh As EventHandler(Of EventArgs)
)
static member AddPropertyEvent :
obj : 'T *
propertyExpression : Expression<Func<'T, 'TProperty>> *
eh : EventHandler<EventArgs> -> unit
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