DependencyPropertyHelper.IsTemplatedValueDynamic Method

Definition

Indicates whether a specified element belongs to an instance of a template that defines a value for the specified property that may change at runtime based on changes elsewhere.

public:
 static bool IsTemplatedValueDynamic(System::Windows::DependencyObject ^ elementInTemplate, System::Windows::DependencyProperty ^ dependencyProperty);
public static bool IsTemplatedValueDynamic (System.Windows.DependencyObject elementInTemplate, System.Windows.DependencyProperty dependencyProperty);
static member IsTemplatedValueDynamic : System.Windows.DependencyObject * System.Windows.DependencyProperty -> bool
Public Shared Function IsTemplatedValueDynamic (elementInTemplate As DependencyObject, dependencyProperty As DependencyProperty) As Boolean

Parameters

elementInTemplate
DependencyObject

An element that belongs to a template instance.

dependencyProperty
DependencyProperty

A dependency property.

Returns

true if elementInTemplate belongs to an instance of a template that defines a value for the specified property that may change at runtime based on changes elsewhere; otherwise, false.

Remarks

Examples of values that may change at runtime based on changes elsewhere are values set by Binding, TemplateBindingExtension and DynamicResourceExtension objects.

This method provides more detailed information in cases where the value of the ValueSource.BaseValueSource property is BaseValueSource.ParentTemplate. The information is primarily of use to diagnostic tools.

Applies to