InertiaTranslationBehavior Class
Collapse the table of content
Expand the table of content

InertiaTranslationBehavior Class

.NET Framework 4.6 and 4.5

Controls deceleration on a translation manipulation during inertia.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)


public class InertiaTranslationBehavior


Initializes a new instance of the InertiaTranslationBehavior class.


Gets or sets the rate the linear movement slows in device-independent units (1/96th inch per unit) per squared millisecond.


Gets or sets the linear movement of the manipulation at the end of inertia.


Gets or sets the initial rate of linear movement at the start of the inertia phase.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


Returns a string that represents the current object.(Inherited from Object.)

The InertiaTranslationBehavior class specifies how a translation manipulation behaves when it is inertia. Use the TranslationBehavior property in the ManipulationInertiaStarting event to do the following:

  • Specify the initial velocity of the inertia when it begins by setting the InitialVelocity property.

  • Specify the desired position of the manipulation when inertia ends by setting the DesiredDisplacement property.

  • Specify the desired deceleration of the inertia by setting the DesiredDeceleration property.

Set either the DesiredDisplacement or the DesiredDeceleration, but not both. When you set one of these properties, the other property is changed to Double.NaN if it has a value.

For more information about manipulations, see the Input Overview. For an example of an application that responds to manipulations, see Walkthrough: Creating Your First Touch Application.

Legacy Code Example

The following example shows the ManipulationInertiaStarting event handler and sets the desired deceleration for translation, expansion, and rotation that is used during inertia. This example is part of a larger example in Walkthrough: Creating Your First Touch Application.

Code snippet is not found. Confirm that the code snippet name 'BasicManipulation' is correct.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2015 Microsoft