public static void AddObjectAnimationUsingKeyFrames <T, TValue>(this Storyboard storyboard, T target, Expression <Func <T, TValue> > targetProperty, TValue keyFrame ) where T : DependencyObject { storyboard.AddObjectAnimationUsingKeyFrames(target, targetProperty, (Duration?)null, new DiscreteObjectKeyFrame(keyFrame, KeyTime.FromPercent(0))); }
public static void AddObjectAnimationUsingKeyFrames <T, TValue>(this Storyboard storyboard, T target, Expression <Func <T, TValue> > targetProperty, params ObjectKeyFrame[] keyFrames ) where T : DependencyObject { storyboard.AddObjectAnimationUsingKeyFrames(target, targetProperty, null, keyFrames); }