Blinking animation WPF

前端 未结 3 1230
难免孤独
难免孤独 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:52

    I know this is an old thread, but to add-on to Pavlo's answer, which helped me and is correct. I wanted more of an actual flicker effect, than a quick "fade-in fade-out". I used his animation code and modified it a bit:

    In your resources:

    
    
        
        
        
    
    

    In your XAML:

    
        
            
                
            
        
    
    

提交回复
热议问题