Use SetCurrentValue() to write to dependency properties.