ExtensionMethods.RemovePropertyChangeHandler Method

Definition

Overloads

RemovePropertyChangeHandler<T>(T, DependencyProperty, EventHandler)

Removes a handler for a dependency property change

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

Removes a handler for a dependency property change

RemovePropertyChangeHandler<T>(T, DependencyProperty, EventHandler)

Removes a handler for a dependency property change

public:
generic <typename T>
 where T : System::Windows::DependencyObject[System::Runtime::CompilerServices::Extension]
 static void RemovePropertyChangeHandler(T instance, System::Windows::DependencyProperty ^ property, EventHandler ^ handler);
public static void RemovePropertyChangeHandler<T> (this T instance, System.Windows.DependencyProperty property, EventHandler handler) where T : System.Windows.DependencyObject;
static member RemovePropertyChangeHandler : 'T * System.Windows.DependencyProperty * EventHandler -> unit (requires 'T :> System.Windows.DependencyObject)
<Extension()>
Public Sub RemovePropertyChangeHandler(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 no longer be handled

property
DependencyProperty

The property whose change will no longer be handled

handler
EventHandler

The method to be removed

Applies to

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

Removes a handler for a dependency property change

public:
generic <typename T>
 where T : System::Windows::DependencyObject[System::Runtime::CompilerServices::Extension]
 static void RemovePropertyChangeHandler(T instance, System::Windows::DependencyProperty ^ property, EventHandler ^ handler, Type ^ targetType);
public static void RemovePropertyChangeHandler<T> (this T instance, System.Windows.DependencyProperty property, EventHandler handler, Type targetType) where T : System.Windows.DependencyObject;
static member RemovePropertyChangeHandler : 'T * System.Windows.DependencyProperty * EventHandler * Type -> unit (requires 'T :> System.Windows.DependencyObject)
<Extension()>
Public Sub RemovePropertyChangeHandler(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 no longer be handled

property
DependencyProperty

The property whose change will no longer be handled

handler
EventHandler

The method to be removed

targetType
Type

The type of the object where property is set

Applies to