Method OnApply
OnApply(DependencyProperty, Type)
Notification that this metadata has been applied to a property and the metadata is being sealed
protected override void OnApply(DependencyProperty dp, Type targetType)
Parameters
dpDependencyPropertyDependencyProperty
targetTypeTypeType associating metadata (null if default metadata)
Remarks
Normally, any mutability of the data structure should be marked as immutable at this point