Cet article a fait l’objet d’une traduction automatique. Pour afficher l’article en anglais, activez la case d’option Anglais. Vous pouvez également afficher le texte anglais dans une fenêtre contextuelle en faisant glisser le pointeur de la souris sur le texte traduit.
Traduction
Anglais

DependencyPropertyChangedEventHandler délégué

 

Date de publication : novembre 2016

Représente la méthode qui gère les événements déclenchés en cas de modification de DependencyProperty sur une implémentation de DependencyObject donnée.

Espace de noms:   System.Windows
Assembly:  WindowsBase (dans WindowsBase.dll)

public delegate void DependencyPropertyChangedEventHandler(
	object sender,
	DependencyPropertyChangedEventArgs e
)

Paramètres

sender
Type: System.Object

Source de l'événement.

e
Type: System.Windows.DependencyPropertyChangedEventArgs

Données d'événement.

This delegate is the handler signature for particular events that report dependency property changes.

An event that uses this handler is exposed as a TLA#tla_clr event, not as a routed event. Typically these events follow the naming pattern Is(PropertyName)Changed, where PropertyName is the P:System.Windows.DependencyProperty.Name of the property that changed. The arguments of the event are used to query the old and new value of the property, as reported by the particular event. Typically there is a 1:1 correspondence between properties that change and a particular event that reports the change. It is also possible, though uncommon, to have the same event report changes to more than one property. In this case, the T:System.Windows.DependencyPropertyChangedEventArgs should be checked to determine the property that changed.

The event data class T:System.Windows.DependencyPropertyChangedEventArgs has a wider usage than just this delegate. T:System.Windows.DependencyPropertyChangedEventArgs is also used to communicate data for T:System.Windows.PropertyChangedCallback implementations, which are part of the customization features and internals of the TLA2#tla_winclient property system, and by the M:System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs) virtual method, which can be overridden to provide class-specific notifications whenever any dependency property on the object changes.

.NET Framework
Disponible depuis 3.0
Silverlight
Disponible depuis 2.0
Silverlight pour Windows Phone
Disponible depuis 7.0
Retour au début
Afficher: