/*
         * public void Cancel()
         * {
         *  HasCancelled = true;
         *  AnimatorAgent.Cancel();
         * }
         */

        public BaseViewAnimator SetRepeat(ValueAnimatorRepeatMode repeatMode = ValueAnimatorRepeatMode.Restart, int count = Animation.Infinite, int pauseAfter = 0)
        {
            RepeatMode  = repeatMode;
            RepeatCount = count;
            PauseAfter  = pauseAfter;
            return(this);
        }
Exemple #2
0
 /// <summary>
 /// Sets how the shimmering animation will repeat. See <see cref="ValueAnimator.RepeatMode"/>.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="builder"></param>
 /// <param name="mode"></param>
 /// <returns></returns>
 public static T SetRepeatMode <T>(this T builder, ValueAnimatorRepeatMode mode) where T : Shimmer.Builder, Shimmer.IBuilder <T>
 {
     builder.SetRepeatMode((int)mode);
     return(builder);
 }