Expand Minimize

DependencyPropertyChangedEventHandler Delegate

May 11, 2014

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
)

Parameters

sender
Type: System.Object
The source of the event (typically the object where the property changed).
e
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

Show:
© 2014 Microsoft