XAML Grid Visibility Transition?

前端 未结 1 1358

I have a Grid that has Visibility bound to a property in my viewmodel. This all works fine -- the Grid appears/disappears correctly. My question is, how can I apply a transi

1条回答
  •  再見小時候
    2020-11-28 16:02

    So as a quick example, one way of doing this;

    
          
               
               
          
          
          
               
          
          
               
                     
                           
                                
                                     
                                
                                
                                      
                                
                           
                      
                
            
    
    

    This will slide it in when it's loaded and even fade in as it goes. You might have to play with the "X" value on SlideIn to get it off the screen to your liking. You could reverse it for the other direction.

    Hope this helps.

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