Share via


ExtensionMethods.AddPropertyChangeHandler Method

Definition

Overloads

AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler)

Adds a handler that is called when property changes on instance

AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type)

Adds a handler that is called when property changes on instance

AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler)

Adds a handler that is called when property changes on instance

public:
generic <typename T>
 where T : System::Windows::DependencyObject[System::Runtime::CompilerServices::Extension]
 static void AddPropertyChangeHandler(T instance, System::Windows::DependencyProperty ^ property, EventHandler ^ handler);
public static void AddPropertyChangeHandler<T> (this T instance, System.Windows.DependencyProperty property, EventHandler handler) where T : System.Windows.DependencyObject;
static member AddPropertyChangeHandler : 'T * System.Windows.DependencyProperty * EventHandler -> unit (requires 'T :> System.Windows.DependencyObject)
<Extension()>
Public Sub AddPropertyChangeHandler(Of T As DependencyObject) (instance As T, property As DependencyProperty, handler As EventHandler)

Type Parameters

T

The type of object being bound

Parameters

instance
T

The instance whose property change will be handled

property
DependencyProperty

The property whose change will be handled

handler
EventHandler

The method that is called when property changes

Applies to

AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type)

Adds a handler that is called when property changes on instance

public:
generic <typename T>
 where T : System::Windows::DependencyObject[System::Runtime::CompilerServices::Extension]
 static void AddPropertyChangeHandler(T instance, System::Windows::DependencyProperty ^ property, EventHandler ^ handler, Type ^ targetType);
public static void AddPropertyChangeHandler<T> (this T instance, System.Windows.DependencyProperty property, EventHandler handler, Type targetType) where T : System.Windows.DependencyObject;
static member AddPropertyChangeHandler : 'T * System.Windows.DependencyProperty * EventHandler * Type -> unit (requires 'T :> System.Windows.DependencyObject)
<Extension()>
Public Sub AddPropertyChangeHandler(Of T As DependencyObject) (instance As T, property As DependencyProperty, handler As EventHandler, targetType As Type)

Type Parameters

T

The type of object being bound

Parameters

instance
T

The instance whose property change will be handled

property
DependencyProperty

The property whose change will be handled

handler
EventHandler

The method that is called when property changes

targetType
Type

The type of the object where property is set

Applies to