Export (0) Print
Expand All
Expand Minimize

DependencyPropertyChangedEventHandler Delegate

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 Silverlight 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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft