利用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);
05-23 07:36