public static void CreateLinearAnimation(IAnimatable Item, DependencyProperty dp, double ToValue, double SecondTime, SetExtentAnimationTimelineDelegate SetExtentValue) { CuxDoubleAnimationUsingKeyFrames.CreateLinearAnimation(Item, dp, ToValue, SecondTime, null, SetExtentValue); }
public static void CreateLinearAnimation(IAnimatable Item, DependencyProperty dp, double ToValue, double SecondTime, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue) { CuxAnimationUsingKeyFramesBase <DoubleAnimationUsingKeyFrames, double> .CreateLinearAnimation <CuxDoubleAnimationUsingKeyFrames>(Item, dp, ToValue, SecondTime, OnCompleted, SetExtentValue); }
protected static void CreateSplineAnimation <K>(IAnimatable Item, DependencyProperty dp, S FromValue, S ToValue, double SecondTime, double SplineX1, double SplineY1, double SplineX2, double SplineY2, Action OnCompleted, SetExtentAnimationTimelineDelegate SetExtentValue) where K : CuxAnimationUsingKeyFramesBase <T, S>, new() { K animation = new K(); animation.AddSplineKeyFrame(FromValue, 0, SplineX1, SplineY1, SplineX2, SplineY2); animation.AddSplineKeyFrame(ToValue, SecondTime, SplineX1, SplineY1, SplineX2, SplineY2); animation.BeginAnimation(Item, dp, OnCompleted, SetExtentValue); }