Apart from animating the appearance of controls, such as text blocks or buttons, it is also possible to add some animations to the collection of items. In such a case, each item will be animated, which could create a really interesting effect. In this recipe, you will learn how to add the entrance theme transition for elements within ItemsControl
.
Apply a transition (EntranceThemeTransition
) to all the items within ItemsControl
by modifying the content of the MainPage.xaml
file, as follows:
<Page (...)>
<Grid
VerticalAlignment="Center"
HorizontalAlignment="Center">
<ItemsControl>
<ItemsControl.ItemContainerTransitions>
<TransitionCollection>
<EntranceThemeTransition
...