How to make the animation smoother through code in WPF?

前端 未结 3 376
你的背包
你的背包 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:34

    If you are using StoryBoard, use Timeline.DesiredFrameRate attached property.

提交回复
热议问题