Method OverrideMetadata
OverrideMetadata(Type, PropertyMetadata)
Supply metadata for given type & run static constructors if needed.
public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata)
Parameters
forType
TypetypeMetadata
PropertyMetadata
Remarks
The supplied metadata will be merged with the type's base metadata
OverrideMetadata(Type, PropertyMetadata, DependencyPropertyKey)
Supply metadata for a given type, overriding a property that is
read-only. If property is not read only, tells user to use the Plain Jane OverrideMetadata instead.
public void OverrideMetadata(Type forType, PropertyMetadata typeMetadata, DependencyPropertyKey key)
Parameters
forType
TypetypeMetadata
PropertyMetadatakey
DependencyPropertyKey