WPF——Sharder实现Logo走光动画

利用WPF的走光动画实现的走光动画。

资源  实例程序

示例代码

            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

 

你可能感兴趣的:(logo)