利用WPF的走光动画实现的走光动画。
资源 实例程序
示例代码
class="code_img_closed" src="/Upload/Images/2013121118/0015B68B3C38AA5B.gif" alt="" />logs_code_hide('ebfaa7ed-ec2e-4933-8df9-04d1b5a4f012',event)" src="/Upload/Images/2013121118/2B1B950FA3DF188F.gif" alt="" />LogoEffect logoEffect = new LogoEffect() { SunAngle=105 }; //要添加走光动画的物体 logo.Effect = logoEffect; DoubleAnimation doubleAnimation = new DoubleAnimation() { From = 0, To = 5, AutoReverse = false, RepeatBehavior = RepeatBehavior.Forever, Duration=TimeSpan.FromSeconds(3.5) }; logoEffect.BeginAnimation(LogoEffect.RedThresholdProperty, doubleAnimation);View Code