ClassRadMoveAnimation
Moves the target element from a start point to an end point.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadMoveAnimation : RadAnimationGroup
Inheritance: objectRadAnimationRadAnimationGroupRadMoveAnimation
Derived Classes:
Inherited Members
Constructors
RadMoveAnimation()
Initializes a new instance of the RadMoveAnimation class.
Declaration
public RadMoveAnimation()
Properties
Duration
Gets or sets the duration of the animation. Defaults to (0:0:.4) - 400 milliseconds.
Declaration
public override Duration Duration { get; set; }
Property Value
Duration
Overrides
EndPoint
Gets or sets the end position of the animation. If not set, the current element TranslateTransform (if any) is used or an empty Point - that is [0,0]. If MoveDirection is set this property is disregarded.
Declaration
public Point? EndPoint { get; set; }
Property Value
Point?
MiddlePointsXAxis
Gets or sets the middle points of the X animation.
Declaration
public DoubleKeyFrameCollection MiddlePointsXAxis { get; set; }
Property Value
DoubleKeyFrameCollection
MiddlePointsYAxis
Gets or sets the middle points of the Y animation.
Declaration
public DoubleKeyFrameCollection MiddlePointsYAxis { get; set; }
Property Value
DoubleKeyFrameCollection
MoveDirection
Gets or sets a value that describes from to where the animated element should move. For more precise control use the StartPoint and EndPoint and set MoveDirection to null. Move direction has precedence over StartPoint and EndPoint.
Declaration
public MoveDirection? MoveDirection { get; set; }
Property Value
PointMode
Gets or sets a value that determines how the move animation's start and end points will be interpreted. Absolute means that they will be interpreted as pixels and Relative means that they will interpreted as points in the [-1, 1] range.
Declaration
public MoveAnimationPointMode PointMode { get; set; }
Property Value
StartPoint
Gets or sets the start position for the animation. If not set, the current element TranslateTransform (if any) is used or an empty Point - that is [0,0]. If MoveDirection is set this property is disregarded.
Declaration
public Point? StartPoint { get; set; }
Property Value
Point?
Methods
CreateOpposite()
Creates a new instance of this animation that is the reverse of this instance.
Declaration
public override RadAnimation CreateOpposite()
Returns
A new instance of this animation that is the reverse of this instance.
Overrides
GetOppositeDirection(MoveDirection)
Gets the move direction value, opposite (mirrored) to the specified one.
Declaration
protected static MoveDirection GetOppositeDirection(MoveDirection direction)
Parameters
direction
The direction which opposite value should be calculated.
Returns
GetPoint(UIElement, Point?)
Gets the value of a nullable point if it is not null. If it is null it returns a point that represents the X and Y components of the target's TranslateTransform.
Declaration
protected static Point GetPoint(UIElement target, Point? point)
Parameters
target
UIElement
The target from which to obtain a point if the provided point is null.
point
Point?
A nullable point.
Returns
Point
Returns the value of a nullable point if it is not null. If it is null it returns a point that represents the X and Y components of the target's TranslateTransform.
GetStartEndPoints(FrameworkElement)
Sets the start and end point arguments based on the current MoveDirection value.
Declaration
protected Pair<Point, Point> GetStartEndPoints(FrameworkElement element)
Parameters
element
FrameworkElement
The target which is required in order to determine the move length. The move length is equal to the render size of target.
Returns
Pair<Point, Point>
UpdateAnimationOverride(AnimationContext)
Core update routine.
Declaration
protected override void UpdateAnimationOverride(AnimationContext context)
Parameters
context
The context that holds information about the animation.
Overrides