Click or drag to resize
CalendarAnimationTranslate Method (FrameworkElement, NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)
Translates the target element as requested by the parameters and executes the action request.

Namespace: Telerik.Windows.Controls.Calendar
Assembly: Telerik.Windows.Controls.Input (in Telerik.Windows.Controls.Input.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public static void Translate(
	this FrameworkElement target,
	Nullable<double> fromX,
	Nullable<double> fromY,
	Nullable<double> toX,
	Nullable<double> toY,
	TimeSpan duration,
	Action action
)

Parameters

target
Type: System.WindowsFrameworkElement
The given element.
fromX
Type: SystemNullableDouble
The starting x Translate transform value.
fromY
Type: SystemNullableDouble
The starting y Translate transform value.
toX
Type: SystemNullableDouble
The final x Translate transform value.
toY
Type: SystemNullableDouble
The final y Translate transform value.
duration
Type: SystemTimeSpan
How long should the transition take.
action
Type: SystemAction
The action request to be executed later.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameworkElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also