Boolean Animation locks property

前端 未结 2 405
生来不讨喜
生来不讨喜 2021-01-18 06:51

If I have a BooleanAnimation that sets a property, that property becomes locked and can\'t be changed by any other means.

Example:



        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-18 07:12

    The CheckBox is still being set, but the animation is still running, which is why it appears to be unchecking it. There are a few ways that this can be fixed so that the animation no longer controls the property on the checkbox. The MSDN Animation overview talks about what happens when the animation ends. And how to set a Property after animating it with a Storyboard goes over some other options.

提交回复
热议问题