利用WPF的走光动画实现的走光动画。
示例代码
LogoEffect logoEffect = new LogoEffect() { SunAngle= };
//要添加走光动画的物体
logo.Effect = logoEffect;
DoubleAnimation doubleAnimation = new DoubleAnimation() { From = , To = , AutoReverse = false, RepeatBehavior = RepeatBehavior.Forever, Duration=TimeSpan.FromSeconds(3.5) };
logoEffect.BeginAnimation(LogoEffect.RedThresholdProperty, doubleAnimation);