DependencyProperty.OverrideMetadata Method

Supplies alternate metadata for this dependency property when it is present on instances of a specified type, versus the metadata that was provided in the initial dependency property registration.

Name Description
DependencyProperty.OverrideMetadata (Type, PropertyMetadata) Supplies alternate metadata for this dependency property when it is present on instances of a specified type, overriding the metadata that existed for the inherited dependency property.
DependencyProperty.OverrideMetadata (Type, PropertyMetadata, DependencyPropertyKey) Supplies alternate metadata for a read-only dependency property when it is present on instances of a specified type, overriding the metadata that was provided in the initial dependency property registration. You must pass the DependencyPropertyKey for the read-only dependency property to avoid raising an exception.

Community Additions

ADD
Show: