ManipulationDeltaEventArgs Class
Provides data for the ManipulationDelta event.
System::EventArgs
System.Windows::RoutedEventArgs
System.Windows.Input::InputEventArgs
System.Windows.Input::ManipulationDeltaEventArgs
Assembly: PresentationCore (in PresentationCore.dll)
The ManipulationDeltaEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CumulativeManipulation | Gets the cumulated changes of the current manipulation. |
![]() | DeltaManipulation | Gets the most recent changes of the current manipulation. |
![]() | Device | Gets the input device that initiated this event. (Inherited from InputEventArgs.) |
![]() | Handled | 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.) |
![]() | IsInertial | Gets a value that indicates whether the ManipulationDelta event occurs during inertia. |
![]() | ManipulationContainer | Gets the container that defines the coordinates for the manipulation. |
![]() | ManipulationOrigin | Gets the point from which the manipulation originated. |
![]() | Manipulators | Gets a collection of objects that represents the touch contacts for the manipulation. |
![]() | OriginalSource | Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. (Inherited from RoutedEventArgs.) |
![]() | RoutedEvent | Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. (Inherited from RoutedEventArgs.) |
![]() | Source | Gets or sets a reference to the object that raised the event. (Inherited from RoutedEventArgs.) |
![]() | Timestamp | Gets the time when this event occurred. (Inherited from InputEventArgs.) |
![]() | Velocities | Gets the rates of the most recent changes to the manipulation. |
| Name | Description | |
|---|---|---|
![]() | Cancel | Cancels the manipulation. |
![]() | Complete | Completes the manipulation without inertia. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeEventHandler | Invokes event handlers in a type-specific way, which can increase event system efficiency. (Inherited from InputEventArgs.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnSetSource | When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. (Inherited from RoutedEventArgs.) |
![]() | ReportBoundaryFeedback | Specifies that the manipulation has gone beyond certain boundaries. |
![]() | StartInertia | Starts inertia on the manipulation by ignoring subsequent contact movements and raising the ManipulationInertiaStarting event. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The ManipulationDeltaEventArgs class contains data about changes in the position of a manipulation. The DeltaManipulation property contains the changes that occurred since the last ManipulationDelta event occurred. The CumulativeManipulation property contains the total changes that occurred for the current manipulation. You use one of those properties to transform the manipulated object.
You can end a manipulation by calling the Complete method or force the manipulation into inertia by calling the StartInertia method.
The following example shows an event handler for the ManipulationDelta event. The example uses the DeltaManipulation property to move, resize, and rotate a Rectangle. The example also checks whether the ManipulationDelta event occurred during inertia and whether the rectangle is touching the edge of a window. If those cases are true, the application stops the manipulation to prevent the rectangle from leaving the visible area of the application. This example is part of a larger example in Walkthrough: Creating Your First Touch Application.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
