O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding animation to show the collection of items

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.

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required