Class MoveAnimation
Animation which moves an object from Old Position to Current Position.
Inherited Members
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public class MoveAnimation : BaseAnimation
Constructors
MoveAnimation()
Fields
CurrentPositionProperty
Represents the CurrentPosition attached property.
Declaration
public static readonly DependencyProperty CurrentPositionProperty
Field Value
System.Windows.DependencyProperty
|
OldPositionProperty
Represents the OldPosition attached property.
Declaration
public static readonly DependencyProperty OldPositionProperty
Field Value
System.Windows.DependencyProperty
|
Methods
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the slide animation.
Declaration
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters
System.Windows.FrameworkElement
control
The control for which the animation is needed. |
System.Windows.FrameworkElement
target
The targeted element of the animation. |
Returns
System.Windows.Media.Animation.Storyboard
The newly created animation. |
Overrides
GetCurrentPosition(DependencyObject)
Gets the CurrentPosition for the given DependencyObject, normally a UIElement.
Declaration
public static Point GetCurrentPosition(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Windows.Point
The current position of the given object. |
Remarks
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.
GetOldPosition(DependencyObject)
Gets the OldPosition for the given DependencyObject, normally a UIElement.
Declaration
public static Point GetOldPosition(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Windows.Point
The old position of the given object. |
Remarks
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.
SetCurrentPosition(DependencyObject, Point)
Sets the CurrentPosition attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetCurrentPosition(DependencyObject obj, Point value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Windows.Point
value
The current position to assign. |
Remarks
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.
SetOldPosition(DependencyObject, Point)
Sets the OldPosition attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetOldPosition(DependencyObject obj, Point value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Windows.Point
value
The old position to assign. |
Remarks
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.
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, Object[])
Updates the slide animation.
Declaration
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters
System.Windows.FrameworkElement
control
The control for which the animation needs to be updated. |
System.Windows.Media.Animation.Storyboard
storyboard
Storyboard that needs to be updated. |
System.Windows.FrameworkElement
target
The targeted element of the animation. |
System.Object[]
args
|
Overrides
Remarks
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.