MoveAnimation
Animation which moves an object from Old Position to Current Position.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class MoveAnimation : BaseAnimation
Inheritance: objectRadAnimationBaseAnimationMoveAnimation
Inherited Members
Constructors
Initializes a new instance of the MoveAnimation class.
public MoveAnimation()
Fields
CurrentPositionProperty
DependencyProperty
Represents the CurrentPosition attached property.
public static readonly DependencyProperty CurrentPositionProperty
OldPositionProperty
DependencyProperty
Represents the OldPosition attached property.
public static readonly DependencyProperty OldPositionProperty
Methods
Creates the slide animation.
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
The control for which the animation is needed.
targetFrameworkElementThe targeted element of the animation.
Returns:Storyboard
The newly created animation.
Overrides:
Gets the CurrentPosition for the given DependencyObject, normally a UIElement.
public static Point GetCurrentPosition(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:Point
The current position of the given object.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Gets the OldPosition for the given DependencyObject, normally a UIElement.
public static Point GetOldPosition(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:Point
The old position of the given object.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Sets the CurrentPosition attached property to the given DependencyObject, normally a UIElement.
public static void SetCurrentPosition(DependencyObject obj, Point value)
The target animated object, normally a UIElement.
valuePointThe current position to assign.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Sets the OldPosition attached property to the given DependencyObject, normally a UIElement.
public static void SetOldPosition(DependencyObject obj, Point value)
The target animated object, normally a UIElement.
valuePointThe old position to assign.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Updates the slide animation.
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
The control for which the animation needs to be updated.
storyboardStoryboardStoryboard that needs to be updated.
targetFrameworkElementThe targeted element of the animation.
argsobject[]Overrides:
Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.