Partilhar via


DependencyPropertyChangedEventArgs.Property Property

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

Gets the identifier for the dependency property where the value change occurred.

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

Syntax

'Declaration
Public ReadOnly Property Property As DependencyProperty
public DependencyProperty Property { get; }

Property Value

Type: System.Windows.DependencyProperty
The identifier field of the dependency property where the value change occurred.

Remarks

If the action of your PropertyChangedCallback changes the property value again, you can use SetValue, passing Property for the dp parameter and using this in the callback scope as the invoking DependencyObject.

The Property can be particularly relevant if used within a common PropertyChangedCallback that is registered for several properties, and it is necessary to disambiguate which property change invoked the callback.

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.