Export (0) Print
Expand All

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
)
public static ValueSource GetValueSource (
	DependencyObject dependencyObject, 
	DependencyProperty dependencyProperty
)
public static function GetValueSource (
	dependencyObject : DependencyObject, 
	dependencyProperty : DependencyProperty
) : ValueSource
You cannot use methods in XAML.

Parameters

dependencyObject

The element that contains the dependencyProperty to report information for.

dependencyProperty

The identifier for the dependency property to report information for.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft