开发者

Continuous ColorAnimation?

开发者 https://www.devze.com 2023-01-17 00:54 出处:网络
I set up a ni开发者_StackOverflowce ColorAnimation. When applying AutoReverse = true to it, it even goes from one color to another.

I set up a ni开发者_StackOverflowce ColorAnimation. When applying AutoReverse = true to it, it even goes from one color to another.

Now I want it to change the color it animates to randomly after every completed runthrough. How can I achieve this?

btw. I'm attaching my Animation to a storyboard:

storyboard.RepeatBehavior = RepeatBehavior.Forever;
storyboard.Children.Add(SpotLightAnimation);
storyboard.Begin(this);


Do not use the forever and just when the animation finish run it again with other colors

0

精彩评论

暂无评论...
验证码 换一张
取 消