Two way animation

前端 未结 2 689
陌清茗
陌清茗 2021-01-25 03:27

I\'m triying to hide/show a stackpanel when I click in a button. This is what I made so far:


    

        
2条回答
  •  再見小時候
    2021-01-25 03:30

    You can change your button to a ToggleButton and use the Checked and Unchecked routed events to set up your 2 storyboards:

    
        
            
                
                    
                        
                    
    
                
            
            
                
                    
                         
                    
    
                
            
        
    
    

提交回复
热议问题