Class PageSlide
Transitions between two pages by sliding them horizontally or vertically.
public class PageSlide : IPageTransition
- Inheritance
-
PageSlide
- Implements
- Derived
- Inherited Members
Constructors
PageSlide()
Initializes a new instance of the PageSlide class.
public PageSlide()
PageSlide(TimeSpan, SlideAxis)
Initializes a new instance of the PageSlide class.
public PageSlide(TimeSpan duration, PageSlide.SlideAxis orientation = SlideAxis.Horizontal)
Parameters
duration
TimeSpanThe duration of the animation.
orientation
PageSlide.SlideAxisThe axis on which the animation should occur
Properties
Duration
Gets the duration of the animation.
public TimeSpan Duration { get; set; }
Property Value
Orientation
Gets the orientation of the animation.
public PageSlide.SlideAxis Orientation { get; set; }
Property Value
SlideInEasing
Gets or sets element entrance easing.
public Easing SlideInEasing { get; set; }
Property Value
SlideOutEasing
Gets or sets element exit easing.
public Easing SlideOutEasing { get; set; }
Property Value
Methods
GetVisualParent(Visual?, Visual?)
Gets the common visual parent of the two control.
protected static Visual GetVisualParent(Visual? from, Visual? to)
Parameters
Returns
- Visual
The common parent.
Remarks
Any one of the parameters may be null, but not both.
Exceptions
- ArgumentException
The two controls do not share a common parent.
Start(Visual?, Visual?, bool, CancellationToken)
Starts the animation.
public virtual Task Start(Visual? from, Visual? to, bool forward, CancellationToken cancellationToken)
Parameters
from
VisualThe control that is being transitioned away from. May be null.
to
VisualThe control that is being transitioned to. May be null.
forward
boolIf the animation is bidirectional, controls the direction of the animation.
cancellationToken
CancellationTokenAnimation cancellation.