Windows 8 metro app - animating a stack panel?
问题 I'm making a button that will disappear my stack panel: public void myButton (object sender, Windows.UI.Xaml.RoutedEventArgs e) { myStackPanel.Visibility = Visibility.Collapsed; } However, I would also like to perform a little animation when getting rid of that stack panel. Just a simple animation like fading from left to right. What codes should I add on my myButton? 回答1: You can use a FadeOutThemeAnimation , as described here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml