public static void ScaleTo(this FrameworkElement dp, float val) { Animations.CreateOrUpdateSpringAnimation(val); dp.CenterPoint = new Vector3((float)(dp.ActualWidth / 2.0), (float)(dp.ActualHeight / 2.0), 1f); dp.StartAnimation(Animations._prdAnimation); }