WPF——Sharder实现Logo走光动画
利用WPF的走光动画实现的走光动画。
示例代码
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
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);