This documentation is archived and is not being maintained.

DependencyPropertyHelper.GetValueSource Method

Returns a structure that reports various metadata and property system characteristics of a specified dependency property on a particular DependencyObject.

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

public static ValueSource GetValueSource(
	DependencyObject dependencyObject,
	DependencyProperty dependencyProperty
)

Parameters

dependencyObject
Type: System.Windows.DependencyObject
The element that contains the dependencyProperty to report information for.
dependencyProperty
Type: System.Windows.DependencyProperty
The identifier for the dependency property to report information for.

Return Value

Type: System.Windows.ValueSource
A ValueSource structure that reports the specific information.

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.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: