PropertyMetadata.Merge Method (PropertyMetadata, DependencyProperty)
Merges this metadata with the base metadata.
Assembly: WindowsBase (in WindowsBase.dll)
Protected Overridable Sub Merge ( baseMetadata As PropertyMetadata, dp As DependencyProperty )
Notes to Inheritors:
Class implementations that derive from PropertyMetadata should override this method to account for any metadata properties they have added in their implementations. For instance, your implementation might have added a new flagwise enumeration value, and the implementation should then be able to combine those flags correctly.
Always call the base implementation prior to your implementation code, because the base implementation takes care of merging all the properties already defined on the PropertyMetadata type.
The exact behavior of the merge is up to you. You could choose to have values combined, revert to base value if the derived metadata were left at the default, or many other behaviors based on the types of properties you have added to your particular metadata class, and their meanings.
Available since 3.0