ManipulationInertiaStartingEventArgs Class
Collapse the table of content
Expand the table of content

ManipulationInertiaStartingEventArgs Class

.NET Framework 4.6 and 4.5

Provides data for the ManipulationInertiaStarting event.

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


public sealed class ManipulationInertiaStartingEventArgs : InputEventArgs


Gets the input device that initiated this event.(Inherited from InputEventArgs.)


Get or sets the rate of slowdown of expansion inertial movement.


Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. (Inherited from RoutedEventArgs.)


Gets the rates of changes to the manipulation that occur before inertia starts.


Gets the container that the ManipulationOrigin property is relative to.


Gets or sets the point from which the manipulation originated.


Gets a collection of objects that represents the touch contacts for the manipulation.


Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.(Inherited from RoutedEventArgs.)


Gets or sets the rate of slowdown of rotational inertial movement.


Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.)


Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.)


Gets the time when this event occurred. (Inherited from InputEventArgs.)


Gets and sets the rate of slowdown of linear inertial movement.


Cancels the manipulation.


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


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


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


Specifies the behavior of a manipulation during inertia.


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

You can use the ManipulationInertiaStartingEventArgs object to specify the inertial behavior of a manipulation. You can specify the inertial behavior for each type of manipulation separately by using the TranslationBehavior, ExpansionBehavior, and RotationBehavior properties. Each property is a type of object that represents the inertial behavior and in each case, you can specify the following:

  • The initial velocity of the inertia when it begins.

  • The desired position of the manipulation when inertia ends.

  • The desired deceleration of the inertia.

You typically specify either the desired position of the manipulation when inertia ends or the desired deceleration of the inertia, but not both.

For more information about manipulations, see the Input Overview.

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.

void Window_InertiaStarting(object sender, ManipulationInertiaStartingEventArgs e)

    // Decrease the velocity of the Rectangle's movement by 
    // 10 inches per second every second.
    // (10 inches * 96 pixels per inch / 1000ms^2)
    e.TranslationBehavior.DesiredDeceleration = 10.0 * 96.0 / (1000.0 * 1000.0);

    // Decrease the velocity of the Rectangle's resizing by 
    // 0.1 inches per second every second.
    // (0.1 inches * 96 pixels per inch / (1000ms^2)
    e.ExpansionBehavior.DesiredDeceleration = 0.1 * 96 / (1000.0 * 1000.0);

    // Decrease the velocity of the Rectangle's rotation rate by 
    // 2 rotations per second every second.
    // (2 * 360 degrees / (1000ms^2)
    e.RotationBehavior.DesiredDeceleration = 720 / (1000.0 * 1000.0);

    e.Handled = true;

.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