VisualStateManager can be used to animate
UIElements when the page orientation changes. This can be done by defining a set of
VisualStateGroups corresponding to the
VisualStateGroup contains a collection of
VisualState objects, each containing a collection of
Storyboard objects that specify how an element’s properties change when the control is placed in a particular visual state.
In Listing 4.3, you see how the
LandscapeRight VisualState includes a set of
DoubleAnimations, which move various
TextBlocks on the page to new positions when the page orientation changes.
<Grid x:Name ...