How do I annotate animating a Panel that changes height dynamically.
I have a
PageControl vertically centered in a
StackPanel. Whenever the page control changes page – the it jumps to it’s new vertical position.
Is there any way I can tell it to animate that height change?
<StackPanel ContentAlignment="VerticalCenter"> <PageControl> <Page> <!-- Page with 100px height --> </Page> <Page> <!-- Page with 200px height --> </Page> <PageControl> </StackPanel>
In the above example I’ve written the heights as constants, but the fact is, that I do not know the exact height beforehand – it is just whatever the page renderes to.