private void ApplyDoubleAnimation(double to, TimeSpan ts, Animatable source, DependencyProperty dp) { DoubleAnimation da = new DoubleAnimation(to, new Duration(ts)); source.ApplyAnimationClock(dp, da.CreateClock()); }