public void SetCurrentValue(DependencyProperty dp, object value) { INTERNAL_PropertyStorage storage; INTERNAL_PropertyStore.TryGetStorage(this, dp, true /*create*/, out storage); INTERNAL_PropertyStore.SetValueCommon(storage, value, true); }
public void SetValue(DependencyProperty dp, object value) { // Verify the arguments: if (dp == null) { throw new ArgumentNullException("No property specified"); } INTERNAL_PropertyStorage storage; INTERNAL_PropertyStore.TryGetStorage(this, dp, true /*create*/, out storage); INTERNAL_PropertyStore.SetValueCommon(storage, value, false); }