Smooth animation WPF -
i have animation making image wheel rotate forever. here code:
<image name="bigwheelimage" source="{dynamicresource bigwheel}" height="400" width="400" > <image.rendertransform> <rotatetransform centerx="200" centery="200" /> </image.rendertransform> <image.layouttransform> <translatetransform x="0" y="0" /> </image.layouttransform> <image.style> <style> <style.triggers> <trigger property="image.isenabled" value="true"> <trigger.enteractions> <beginstoryboard> <storyboard repeatbehavior="forever" desiredframerate="30"> <doubleanimation storyboard.targetproperty="rendertransform.angle" from="360" to="0" duration="0:0:35" begintime="00:00:00.000" /> </storyboard> </beginstoryboard> </trigger.enteractions> </trigger> </style.triggers> </style> </image.style> </image>
but when run application, wheel not rotating smoothly. "jumps". tried modify desiredframerated
read here, no luck.
any idea on how make animation smoothly?
Comments
Post a Comment