English 中文(简体)
如何通过世界森林论坛的守则使消化工作更加顺利?
原标题:How to make the animation smoother through code in WPF?
  • 时间:2009-10-06 10:51:15
  •  标签:

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, 0), 
        new Duration(new TimeSpan(0, 0, seconds)), FillBehavior.HoldEnd);                  

pdRod.BeginAnimation(Border.MarginProperty, anima);

Its working, but not smooth enough. How to do it smooth?

感谢

最佳回答
问题回答

如果你使用<条码>StoryBoard,则使用<条码>,DesiredFrameRate随附财产。

请根据您的需要调整所附财产<代码> 日线。 更高的水位将减少你可能看到的泪弹。





相关问题
热门标签