public void CoerceCurrentValue(DependencyProperty dependencyProperty, PropertyMetadata propertyMetadata) { INTERNAL_PropertyStorage storage; INTERNAL_PropertyStore.TryGetStorage(this, dependencyProperty, true /*create*/, out storage); INTERNAL_PropertyStore.CoerceValueCommon(storage); }
public void CoerceValue(DependencyProperty dp) { if (dp == null) { throw new ArgumentNullException("No property specified."); } INTERNAL_PropertyStorage storage; INTERNAL_PropertyStore.TryGetStorage(this, dp, true /*create*/, out storage); INTERNAL_PropertyStore.CoerceValueCommon(storage); }