Storyboard DoubleAnimation Does not work with StackPanel Height Property

前端 未结 3 1687
渐次进展
渐次进展 2021-01-13 02:16

I\'m trying to use DoubleAnimation to change the Height property of a StackPanel. The code does not throw any exception. But the animation does not work.

            


        
3条回答
  •  执念已碎
    2021-01-13 03:06

    The easiest way to animate the size of a UI component generally in XAML (and Silverlight/WPF) is to use a RenderTransform. Depending on the layout, you may need to do a few tricks, but for a quick animation, it generally looks very nice.

    
    
    
    
    

提交回复
热议问题