我已经将以下的
FadeIn/FadeOut
动画应用到了在 WPF
中的一个 Canvas
里。var fadingInOutAnimation = new DoubleAnimation
{
From = 1,
To = 0,
Duration = new Duration(TimeSpan.FromMilliseconds(1000)),
AutoReverse = true,
RepeatBehavior = RepeatBehavior.Forever,
};
MyCanvas.BeginAnimation(OpacityProperty, fadingInOutAnimation);
现在我希望当动画结束时,它能够暂停1秒钟,然后再次重复播放。
就像这样:
Animation --- Pause (1 Sec) --- Animation --- Pause (1 Sec) and so on.