How to animate a Popup when it hides?

后端 未结 1 1364
后悔当初
后悔当初 2020-12-31 20:02

i created a Popup Style for using in my windows 8.1 application. And i applied PopupThemeTransition to it\'s ChildTransitions Propert

1条回答
  •  暖寄归人
    2020-12-31 20:51

    This is not native to the Popup because they typically do not have an exit animation. Having said that, there's no reason you can't add an exit animation to a Popup control.

    Try this:

    
        
            
                
            
            
                
            
        
        
            
                
                    
                
            
            
                
                    
                    
                
            
        
        
            
            
        
    
    

    Using these:

    xmlns:Interactivity="using:Microsoft.Xaml.Interactivity" 
    xmlns:Core="using:Microsoft.Xaml.Interactions.Core"
    xmlns:Media="using:Microsoft.Xaml.Interactions.Media"
    

    Best of luck!

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