Class
RadMoveAnimation

Moves the target element from a start point to an end point.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadMoveAnimation : RadAnimationGroup

Inheritance: objectRadAnimationRadAnimationGroupRadMoveAnimation

Derived Classes: RadSlideAnimation

Inherited Members RadAnimationGroup.ClearAnimation(UIElement)RadAnimationGroup.ApplyInitialValues(UIElement)RadAnimationGroup.ApplyAnimationValues(PlayAnimationInfo)RadAnimationGroup.CloneCore()RadAnimationGroup.CreateStoryboardOverride(UIElement)RadAnimationGroup.ChildrenRadAnimation.EmptyRadAnimation.Clone()RadAnimation.OnStarted(PlayAnimationInfo)RadAnimation.CopyAnimationValues(PlayAnimationInfo)RadAnimation.OnEnded(PlayAnimationInfo)RadAnimation.OnEnded()RadAnimation.EasingRadAnimation.InitialDelayRadAnimation.AnimationNameRadAnimation.FillBehaviorRadAnimation.SpeedRatioRadAnimation.AutoReverseRadAnimation.RepeatBehaviorRadAnimation.AnimationOriginRadAnimation.Ended

Constructors

RadMoveAnimation()

Initializes a new instance of the RadMoveAnimation class.

Declaration

cs-api-definition
public RadMoveAnimation()

Properties

Duration

Gets or sets the duration of the animation. Defaults to (0:0:.4) - 400 milliseconds.

Declaration

cs-api-definition
public override Duration Duration { get; set; }

Property Value

Duration

Overrides RadAnimation.Duration

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

cs-api-definition
public Point? EndPoint { get; set; }

Property Value

Point?

MiddlePointsXAxis

Gets or sets the middle points of the X animation.

Declaration

cs-api-definition
public DoubleKeyFrameCollection MiddlePointsXAxis { get; set; }

Property Value

DoubleKeyFrameCollection

MiddlePointsYAxis

Gets or sets the middle points of the Y animation.

Declaration

cs-api-definition
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

cs-api-definition
public MoveDirection? MoveDirection { get; set; }

Property Value

MoveDirection?

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

cs-api-definition
public MoveAnimationPointMode PointMode { get; set; }

Property Value

MoveAnimationPointMode

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

cs-api-definition
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

cs-api-definition
public override RadAnimation CreateOpposite()

Returns

RadAnimation

A new instance of this animation that is the reverse of this instance.

Overrides RadAnimationGroup.CreateOpposite()

GetOppositeDirection(MoveDirection)

Gets the move direction value, opposite (mirrored) to the specified one.

Declaration

cs-api-definition
protected static MoveDirection GetOppositeDirection(MoveDirection direction)

Parameters

direction

MoveDirection

The direction which opposite value should be calculated.

Returns

MoveDirection

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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
protected override void UpdateAnimationOverride(AnimationContext context)

Parameters

context

AnimationContext

The context that holds information about the animation.

Overrides RadAnimationGroup.UpdateAnimationOverride(AnimationContext)