WPF动画完成活动 [英] WPF Animation Completed Event
问题描述
大家好,我正在尝试从A点到B点垂直制作对象动画,我正在使用ThicknessAnimation来实现这一点.但是我注意到,如果我将动画的持续时间设置为100毫秒,则会在动画实际完成之前调用Completed事件.我通过在Completed事件处理程序中放置一个消息框来注意到这一点.视觉上,我注意到当消息框出现时,动画在结束之前稍微停了下来.
谢谢!
Hi All,
I am trying to animate an object vertically, from point A to B , i am using a ThicknessAnimation to achieve this. However i noticed that if i place the duration of the animation to 100 ms, the Completed event is being called before the animation is actually completed. I noticed this by placing a message box in the Completed event handler. Visually i notice that the animation stopped a little before the end when the messagebox appeared. Could i be doing something wrong?
Thanks!
推荐答案
您好,
请提供一个简化的示例来演示您遇到的问题?
谢谢.
Hi,
Could you please provide a simplified example to demonstrate the issue you are encountering?
Thanks.
这篇关于WPF动画完成活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!