Compartilhar via


DependencyPropertyChangedEventHandler Delegate

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Delegate Sub DependencyPropertyChangedEventHandler ( _
    sender As Object, _
    e As DependencyPropertyChangedEventArgs _
)
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).

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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

See Also

Reference