Method SetCurrentValue
SetCurrentValue(DependencyProperty, object)
Sets the value of a property without changing its value source.
public void SetCurrentValue(DependencyProperty dp, object value)
Parameters
dp
DependencyPropertyDependency property
value
objectNew value
Remarks
This method is intended for use by a component that wants to programmatically set the value of one of its own properties, in a way that does not disable an application's declared use of that property. SetCurrentValue changes the effective value of the property, but existing triggers, data-binding, styles, etc. will continue to work.