Returns a structure that reports various metadata and property system characteristics of a specified dependency property on a particular DependencyObject.
Assembly: PresentationFramework (in PresentationFramework.dll)
public static ValueSource GetValueSource( DependencyObject dependencyObject, DependencyProperty dependencyProperty )
- Type: System.Windows.DependencyObject
The element that contains the dependencyProperty to report information for.
- Type: System.Windows.DependencyProperty
The identifier for the dependency property to report information for.
You should call this method in a context such that late participants in property value determination are able to act on a property. For instance, bindings may not be active on a property unless all participant elements in the element tree are loaded and the asynchronous binding is propagated, and the binding source object is connected. Similarly, resources including all necessary theme dictionaries should be available.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)