Blinking animation WPF

前端 未结 3 1228
难免孤独
难免孤独 2021-02-02 02:35

I have this animation with me, a sort of blinking animation, such that when the button is clicked, the rectangle \"blinks\". I\'ve written a code for the animation, just wanted

3条回答
  •  星月不相逢
    2021-02-02 02:44

    Instead of ObjectAnimationUsingKeyFrames animation, you can use simple DoubleAnimation on the Opacity property of your rectangle:

    
        
    
    

提交回复
热议问题