New to Telerik UI for WPFStart a free 30-day trial

Animation which moves an object from Old Position to Current Position.

Definition

Constructors

Initializes a new instance of the MoveAnimation class.

C#
public MoveAnimation()

Fields

CurrentPositionProperty

DependencyProperty

Represents the CurrentPosition attached property.

C#
public static readonly DependencyProperty CurrentPositionProperty

OldPositionProperty

DependencyProperty

Represents the OldPosition attached property.

C#
public static readonly DependencyProperty OldPositionProperty

Methods

Creates the slide animation.

C#
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters:controlFrameworkElement

The control for which the animation is needed.

targetFrameworkElement

The targeted element of the animation.

Returns:

Storyboard

The newly created animation.

Overrides: BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

Gets the CurrentPosition for the given DependencyObject, normally a UIElement.

C#
public static Point GetCurrentPosition(DependencyObject obj)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

Returns:

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.

Gets the OldPosition for the given DependencyObject, normally a UIElement.

C#
public static Point GetOldPosition(DependencyObject obj)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

Returns:

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.

Sets the CurrentPosition attached property to the given DependencyObject, normally a UIElement.

C#
public static void SetCurrentPosition(DependencyObject obj, Point value)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

valuePoint

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.

Sets the OldPosition attached property to the given DependencyObject, normally a UIElement.

C#
public static void SetOldPosition(DependencyObject obj, Point value)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

valuePoint

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.

Updates the slide animation.

C#
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

targetFrameworkElement

The targeted element of the animation.

argsobject[]

Overrides: BaseAnimation.UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

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.