Boolean Animation locks property

前端 未结 2 404
生来不讨喜
生来不讨喜 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 06:57

    replace

    FillBehavior="HoldEnd"

    with

    Duration="00:00:01" FillBehavior="Stop"

    and it will work :-)

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题