利用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

相关文章:

  • 2022-12-23
  • 2021-04-01
  • 2022-02-05
  • 2022-12-23
  • 2022-02-07
  • 2023-03-18
  • 2021-08-04
  • 2021-06-12
猜你喜欢
  • 2021-12-06
  • 2021-08-08
  • 2021-08-03
  • 2022-12-23
  • 2021-12-31
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案