Class
RadMoveYAnimation

Represents a move animation on the Y axis.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadMoveYAnimation : MoveAnimationBase

Inheritance: objectRadAnimationMoveAnimationBaseRadMoveYAnimation

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

RadMoveYAnimation()

Declaration

cs-api-definition
public RadMoveYAnimation()

Properties

EndY

Gets or sets the end Y value.

Declaration

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

Property Value

double?

StartY

Gets or sets the start Y value.

Declaration

cs-api-definition
public double? StartY { 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.

GetRelativeY(FrameworkElement, double?)

Gets a Y value that is relative to the height of the animation target.

Declaration

cs-api-definition
protected static double GetRelativeY(FrameworkElement target, double? y)

Parameters

target

FrameworkElement

The animation target.

y

double?

The Y value in relative coordinates.

Returns

double

Returns a Y value in absolute coordinates based on the target's height and the relative value.

GetY(UIElement, double?)

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

Declaration

cs-api-definition
protected static double GetY(UIElement target, double? y)

Parameters

target

UIElement

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

y

double?

A nullable Y value.

Returns

double

Returns the value of a nullable Y value if it is not null. If it is null it returns a point that represents the Y 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)