February 2015
Intermediate to advanced
768 pages
26h 24m
English
So how do you apply a theme transition to an element? Every UIElement has a Transitions property that can be set to a collection of Transition objects (the base class for all theme transitions). Using one of the theme transitions called EntranceThemeTransition as an example, the following XAML applies one to a Button on a Page:
<Page ...> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Button Content="A Button with a Theme Transition"> < Button.Transitions > < TransitionCollection> < EntranceThemeTransition/> </ TransitionCollection> </ Button.Transitions> </Button> </Grid> </Page>
When this Page ...
Read now
Unlock full access