How to make the animation smoother through code in WPF?

前端 未结 3 369
你的背包
你的背包 2020-12-16 17:27

How do we do the smooth animation. I have the code as below.

ThicknessAnimation anima = 
    new ThicknessAnimation(new Thickness(0), new Thickness(0, 25, 0,         


        
3条回答
  •  无人及你
    2020-12-16 18:24

    Try to adjust the attached property Timeline.DesiredFrameRate to your needs. An higher framerate will reduce the tearing you might see.

提交回复
热议问题