5. Transition and Navigation properties - GiampaoloGabba/Xamarin.Plugin.SharedTransitions GitHub Wiki
Transition attached properties
Bindable property | Description |
---|---|
Transition.Name |
The name of the transition used to associate viewvs between pages |
Transition.Group |
The unique group used to associate transition groups in dynamic lists |
Transition.LightSnapshot |
Only for iOS. Take a raster snapshot of the view to transition to preserve all the view's attributes. This snapshot has higher performace. Use only when size and proportions doesnt change (or change a little), otherwise the animation will be very bad |
Bindable properties
Bindable property | Description |
---|---|
SelectedTransitionGroup |
The selected Transition.Group used for dynamic transitions |
SharedTransitionDuration |
Duration, in ms, of the shared transition |
BackgroundAnimation |
Sets the background animation for this page. This is applied to also to all the views not included in the shared transition |
Observable properties
Observable property | Description |
---|---|
CurrentTransition |
The current transition being executed (null when there is no transition active) |
Background animations provided:
Background animation | Description |
---|---|
None |
Do not animate |
Fade |
Show a fade animation |
Flip |
Show a flip animation |
SlideFromLeft |
Show a slide from left animation |
SlideFromRight |
Show a slide from right animation |
SlideFromTop |
Show a slide from top animation |
SlideFromBottom |
Show a slide from bottom animation |
Events
Event | Description |
---|---|
TransitionStarted |
Event invoked when a shared transition starts. SharedTransitionEventArgs are provided |
TransitionEnded |
Event invoked when a shared transition ends. SharedTransitionEventArgs are provided |
TransitionCancelled |
Event invoked when a shared transition is cancelled. SharedTransitionEventArgs are provided |
SharedTransitionEventArgs properties
Bindable property | Description |
---|---|
PageFrom |
Xamarin.Forms Page where the transition started |
PageTo |
Xamarin.Forms Page where the transition ended |
NavOperation |
Enum that indicate the navigation operation (Push or Pop ) |