By default, controls added to a page are visible just after you open it. However, it is possible to enhance the attractiveness of the user interface by adding simple animations for showing controls while the page is being opened. In this recipe, you will learn how to add the entrance transition to a text block.
To step through this recipe, you need only the automatically generated project.
Apply a transition (
EntranceThemeTransition) to the text block by modifying the content of the
MainPage.xaml file, as follows:
<Page (...)> <Grid> <TextBlock Text="Hello! :-)" (...)> <TextBlock.Transitions> <TransitionCollection> <EntranceThemeTransition /> </TransitionCollection> </TextBlock.Transitions> ...