ClassRadMoveXAnimation
Represents a move animation on the X axis.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadMoveXAnimation : MoveAnimationBase
Inheritance: objectRadAnimationMoveAnimationBaseRadMoveXAnimation
Inherited Members
Constructors
RadMoveXAnimation()
Declaration
public RadMoveXAnimation()
Properties
EndX
Gets or sets the end X value.
Methods
ApplyAnimationValues(PlayAnimationInfo)
Applies already stored (if any) animated values.
Declaration
protected override void ApplyAnimationValues(PlayAnimationInfo info)
Parameters
info
The animation info.
Overrides
ApplyInitialValues(UIElement)
Sets the initial animation values to the provided target element.
Declaration
public override void ApplyInitialValues(UIElement target)
Parameters
target
UIElement
The target.
Overrides
ClearAnimation(UIElement)
Removes any property modifications, applied to the specified element by this instance.
Declaration
public override void ClearAnimation(UIElement target)
Parameters
target
UIElement
The element which property values are to be cleared.
Overrides
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
protected static double GetRelativeX(FrameworkElement target, double? x)
Parameters
target
FrameworkElement
The animation target.
x
The X value in relative coordinates.
Returns
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
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
A nullable X coordinate.
Returns
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
protected override void SwapValues()
Overrides
UpdateAnimationOverride(AnimationContext)
Core update routine.
Declaration
protected override void UpdateAnimationOverride(AnimationContext context)
Parameters
context
The context that holds information about the animation.
Overrides