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,
To do this in code, you would use the Timeline.SetDesiredFrameRate(Timeline,int?) method, like this:
ThicknessAnimation anim = ...; Timeline.SetDesiredFrameRate(anim, 60); // 60 FPS
Passing null for the second argument tells the system to control the frame rate.
null