DependencyPropertyHelper.IsTemplatedValueDynamic Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour