Class
RadMoveXAnimation

Represents a move animation on the X axis.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadMoveXAnimation : MoveAnimationBase

Inheritance: objectRadAnimationMoveAnimationBaseRadMoveXAnimation

Inherited Members MoveAnimationBase.CreateOpposite()MoveAnimationBase.GetMoveArguments(double, double)MoveAnimationBase.PointModeMoveAnimationBase.MiddlePointsAxisRadAnimation.EmptyRadAnimation.Clone()RadAnimation.OnStarted(PlayAnimationInfo)RadAnimation.CreateStoryboardOverride(UIElement)RadAnimation.CloneCore()RadAnimation.CopyAnimationValues(PlayAnimationInfo)RadAnimation.OnEnded(PlayAnimationInfo)RadAnimation.OnEnded()RadAnimation.EasingRadAnimation.DurationRadAnimation.InitialDelayRadAnimation.AnimationNameRadAnimation.FillBehaviorRadAnimation.SpeedRatioRadAnimation.AutoReverseRadAnimation.RepeatBehaviorRadAnimation.AnimationOriginRadAnimation.Ended

Constructors

RadMoveXAnimation()

Declaration

cs-api-definition
public RadMoveXAnimation()

Properties

EndX

Gets or sets the end X value.

Declaration

cs-api-definition
public double? EndX { get; set; }

Property Value

double?

StartX

Gets or sets the start X value.

Declaration

cs-api-definition
public double? StartX { get; set; }

Property Value

double?

Methods

ApplyAnimationValues(PlayAnimationInfo)

Applies already stored (if any) animated values.

Declaration

cs-api-definition
protected override void ApplyAnimationValues(PlayAnimationInfo info)

Parameters

info

PlayAnimationInfo

The animation info.

Overrides RadAnimation.ApplyAnimationValues(PlayAnimationInfo)

ApplyInitialValues(UIElement)

Sets the initial animation values to the provided target element.

Declaration

cs-api-definition
public override void ApplyInitialValues(UIElement target)

Parameters

target

UIElement

The target.

Overrides MoveAnimationBase.ApplyInitialValues(UIElement)

ClearAnimation(UIElement)

Removes any property modifications, applied to the specified element by this instance.

Declaration

cs-api-definition
public override void ClearAnimation(UIElement target)

Parameters

target

UIElement

The element which property values are to be cleared.

Overrides RadAnimation.ClearAnimation(UIElement)

Remarks

It is assumed that the element has been previously animated by this animation.

GetRelativeX(FrameworkElement, double?)

Gets an X value that is relative to the size of the animation target.

Declaration

cs-api-definition
protected static double GetRelativeX(FrameworkElement target, double? x)

Parameters

target

FrameworkElement

The animation target.

x

double?

The X value in relative coordinates.

Returns

double

Returns an X value in absolute coordinates based on the target's size and the relative argument.

GetX(UIElement, double?)

Gets the value of a nullable X value if it is not null. If it is null it returns a point that represents the X component of the target's TranslateTransform.

Declaration

cs-api-definition
protected static double GetX(UIElement target, double? x)

Parameters

target

UIElement

The target from which to obtain a point if the provided point is null.

x

double?

A nullable X coordinate.

Returns

double

Returns the value of a nullable X value if it is not null. If it is null it returns a value that represents the X component of the target's TranslateTransform.

SwapValues()

This method must be overridden and is called when this move animation has to swap its start and end values. This is necessary when an opposite animation is created.

Declaration

cs-api-definition
protected override void SwapValues()

Overrides MoveAnimationBase.SwapValues()

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 RadAnimation.UpdateAnimationOverride(AnimationContext)