-
Notifications
You must be signed in to change notification settings - Fork 337
Animations
Kirill edited this page Feb 11, 2018
·
5 revisions
This page talks about animations and how to work with them.
The plugin has default animations which you can use very simply. There are all default animations in Rg.Plugins.Popup.Animations
.
All default animations have these properties:
- DurationIn - Duration of the appearing animation
- DurationOut - Duration of the disappearing animation
- EasingIn - Easing of the appearing animation
- EasingOut - Easing of the disappearing animation
- HasBackgroundAnimation - Enables or disables a background animation.
-
FadeAnimation - Is a simplest animation. It just changes opacity
Content
ofPopupPage
and opacity of background. -
MoveAnimation - The move animation. You can set left, top, right, bottom and center for appearing and disappearing.
- PositionIn - Start position for the appearing animation
- PositionOut - End position for the disappearing animation
-
ScaleAnimation - Is scale and move animations in the one animation.
- PositionIn - Start position for the appearing animation
- PositionOut - End position for the disappearing animation
- ScaleIn - Start scale for appearing animation
- ScaleOut - End scale for the disappearing animation
That to create a custom animation you should create a class which implements Rg.Plugins.Popup.Interfaces.Animations.IPopupAnimation
.
-
Preparing - Is invoked before a
PopupPage
appears -
Disposing - Is invoked after a
PopupPage
disappers -
Appearing - Is invoked when an appearing animation should animate a
PopupPage
-
Disappearing - Is invoked when an disappearing animation should animate a
PopupPage