-
Notifications
You must be signed in to change notification settings - Fork 59
3. Basic shared transitions with fixed elements
Giampaolo Gabba edited this page Aug 12, 2020
·
1 revision
This is the most basic type of transition. We are going to animate one or more views from Page1 to Page2.
Tag the views to transition in the source page (Page1):
<Image Source="mydog.jpg" sharedTransitions:Transition.Name="dogtransition" WidthRequest="100" />
Tag the views to transition in the destination page (Page2), using the same transition name:
<Image Source="mydog.jpg" sharedTransitions:Transition.Name="dogtransition" WidthRequest="300" />
Now you can start the transition doing a standard push between pages:
NavigationPage.Push(new Page2())
When doing a Pop from Page2 to Page1 a return transition will occour
If you need to setup a transitions between a collection and a details page, follow these instructions:
Advanced shared transitions between collection of views and their details page