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
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk