Basically I have control (such as a Grid) which is twice the width of the page.
The idea is to animate the control so that it slides left and the unseen half is shown – but it is not rendered.
Is there a way to force offscreen rendering or force render on the fly (as the animation is playing)?
Thanks in advance,
Jamie
One way to do this is to have a single wide grid, and have two render transforms (TranslateTransform specifically) – one for the left content, and one for the right content. The “left” content would have a TranslateTransform X value of 0, while the right one would have an X value of 480, effectively creating a double wide grid. To perform a side, just use a Storyboard with a double animation of -480 to the X value of both transforms.
It sounds a little complicated but it’s not too bad, let me know if you need more details!
XAML:
Code Behind: