In WPF 3.5 (with SP1), I have simply StackPanel that I would like to animate when I change the property Visibility. I have no idea of the height of this StackPanel since its content determines its height. So when I change the property of my StackPanel to Visible (progressPanel.Visibility = Visibility.Visible;) I would like to see an animation (probably an DoubleAnimationUsingKeyFrames from 0 to X).
Moreover, I have multiple StackPanel that I would like to see with this behavior (so in the best case, I need something generic). Does anybody have an idea on how to do that?
Thanks!