I'm working on a Wizard-style application that has a panel on the right-hand side that changes size to reflect it's content (which would change to the content related to the current page). The panel consists of a ScrollViewer with a surrounding Rectangle that acts as a border. When the content within this panel is smaller than the available space given to it, the panel changes to the required size, aligned to the center of the available space. When the content within this panel is larger than the available space, the panel fills the space and the scrollbars show to scroll the content. The layout works like a charm and looks pretty good, but I want to do some animation when the content changes (as a result of the Wizard's page changing).
Basically, at the current time, changing the content within the panel instantaneously changes the width and height of the panel as required; however, it would be nice if I could make it so that the width and height change gradually (taking around half a second). The way I envision it is that the current content would fade out, then the panel would change size with the required animation, then the new content will fade in. I could figure out how to do this with a storyboard, but I just wondered if there was an existing control that does this?