コード例 #1
0
 public static void CreateLinearAnimation(IAnimatable Item, DependencyProperty dp, double ToValue, double SecondTime, SetExtentAnimationTimelineDelegate SetExtentValue)
 {
     CuxDoubleAnimationUsingKeyFrames.CreateLinearAnimation(Item, dp, ToValue, SecondTime, null, SetExtentValue);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }