ExtensionMethods.AddPropertyChangeHandler Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler) |
Adiciona um manipulador que é chamado quando há |
| AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type) |
Adiciona um manipulador que é chamado quando há |
AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler)
Adiciona um manipulador que é chamado quando há property alterações em 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)
Parâmetros de tipo
- T
O tipo de objeto que está sendo associado
Parâmetros
- instance
- T
A instância cuja alteração de propriedade será tratada
- property
- DependencyProperty
A propriedade cuja alteração será tratada
- handler
- EventHandler
O método que é chamado quando property as alterações
Aplica-se a
AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type)
Adiciona um manipulador que é chamado quando há property alterações em 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)
Parâmetros de tipo
- T
O tipo de objeto que está sendo associado
Parâmetros
- instance
- T
A instância cuja alteração de propriedade será tratada
- property
- DependencyProperty
A propriedade cuja alteração será tratada
- handler
- EventHandler
O método que é chamado quando property as alterações
- targetType
- Type
O tipo do objeto em que property está definido