使用Double Animation后无法更改控件的属性 [英] Unable to change the property of the control after using Double Animation

查看:92
本文介绍了使用Double Animation后无法更改控件的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...

我正在使用Double Animation在WPF中管理控件的宽度,但是在动画结束后,我无法使用Double Animation更改控件widthout的宽度,我想更改控件的宽度而不使用双重动画.我怎样才能做到这一点?谁能帮我.

谢谢

Hi...

I am using Double Animation to manage the width of a control in WPF, but after the duration of the animation finish I am unable to change the width of the control widthout using Double Animation and I want to change the width of the control of the control without using the Double Animation. How can I do this? Can anyone help me.

Thanks

推荐答案

以我的经验,如果即使动画没有移动并经过,动画仍处于活动状态,则必须先对动画进行停止,然后才能进行更改在代码中.
In my experience, if the animation is still active even if it is not moving and elapsed, you have to call stop on the animation before you can change it in code.


这篇关于使用Double Animation后无法更改控件的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆