Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyChangedCallback delegate

Represents the callback that is invoked when the effective property value of a dependency property changes.

Syntax


public delegate void PropertyChangedCallback(
  DependencyObject d, 
  DependencyPropertyChangedEventArgs e
)

Parameters

d

Type: DependencyObject

The DependencyObject on which the property has changed value.

e

Type: DependencyPropertyChangedEventArgs

Event data that is issued by any event that tracks changes to the effective value of this property.

Remarks

You implement callbacks based on this delegate to provide the property-changed behavior for a custom dependency property. You might use this callback to provide value constraints, or to initiate value changes in other properties that depend on the value of the property that is being changed. For more info see Custom dependency properties.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]
[WebHostHidden()]

See also

Register
RegisterAttached
Custom dependency properties
Dependency properties overview

 

 

Show:
© 2015 Microsoft