DependencyPropertyHelper.GetValueSource(DependencyObject, DependencyProperty) Method

Definition

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

public:
 static System::Windows::ValueSource GetValueSource(System::Windows::DependencyObject ^ dependencyObject, System::Windows::DependencyProperty ^ dependencyProperty);
public static System.Windows.ValueSource GetValueSource (System.Windows.DependencyObject dependencyObject, System.Windows.DependencyProperty dependencyProperty);
static member GetValueSource : System.Windows.DependencyObject * System.Windows.DependencyProperty -> System.Windows.ValueSource

Parameters

dependencyObject
DependencyObject

The element that contains the dependencyProperty to report information for.

dependencyProperty
DependencyProperty

The identifier for the dependency property to report information for.

Returns

A ValueSource structure that reports the specific information.

Remarks

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.

Applies to

See also