Udostępnij za pośrednictwem


ManipulationDelta Struct

Definition

Contains the accumulated transformations for the current manipulation.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct ManipulationDelta
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct ManipulationDelta
var manipulationDelta = {
translation : /* Your value */,
scale : /* Your value */,
rotation : /* Your value */,
expansion : /* Your value */
}
Public Structure ManipulationDelta
Inheritance
ManipulationDelta
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Expansion

The change in distance between touch contacts, as device-independent pixel (DIP). For example, if the distance between two contacts changes from 100 device-independent pixel (DIP) to 200 device-independent pixel (DIP) during a manipulation, the value of Expansion would be 100.0.

Rotation

The change in angle of rotation, in degrees.

Scale

The change in distance between touch contacts, as a percentage. For example, if the distance between two contacts changes from 100 device-independent pixel (DIP) to 200 device-independent pixel (DIP) during a manipulation, the value of Scale would be 2.0.

Translation

The change in x-y screen coordinates, in device-independent pixel (DIP).

Applies to

See also