DependencyPropertyChangedEventHandler Delegate
Collapse the table of content
Expand the table of content

DependencyPropertyChangedEventHandler Delegate

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents the method that will handle events raised when a DependencyProperty is changed on a particular DependencyObject implementation.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public delegate void DependencyPropertyChangedEventHandler(
	Object sender,
	DependencyPropertyChangedEventArgs e


Type: System.Object
The source of the event (typically the object where the property changed).
Type: System.Windows.DependencyPropertyChangedEventArgs
The event data.

This delegate is the handler signature for particular events that report dependency property changes. One event in Windows Phone that uses this delegate is IsEnabledChanged.

An event that uses this handler is exposed as a common language runtime (CLR) event, not as a routed event. Typically these events follow the naming pattern IsPropertyNameChanged, where PropertyName is the name of the property that changed. The event data of the event is used to query the old and new value of the property, as reported by the particular event occurence. Typically there is a direct 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, DependencyPropertyChangedEventArgs as reported by e should be checked to determine the property that changed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft