Share via


GestureRecognizer Class

Definition

Provides gesture and manipulation recognition, event listeners, and settings.

For more details on this API, please see the the UWP WinRT GestureRecognizer topic.

public ref class GestureRecognizer sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GestureRecognizer final
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GestureRecognizer
function GestureRecognizer()
Public NotInheritable Class GestureRecognizer
Inheritance
Object Platform::Object IInspectable GestureRecognizer
Attributes

Constructors

GestureRecognizer()

Initializes a new instance of a GestureRecognizer object.

For more details on this API, please see the the UWP WinRT GestureRecognizer topic.

Properties

AutoProcessInertia

Gets or sets a value that indicates whether manipulations during inertia are generated automatically.

For more details on this API, please see the the UWP WinRT AutoProcessInertia topic.

CrossSlideExact

Gets or sets a value that indicates whether the exact distance from initial contact to end of the cross-slide interaction is reported.

CrossSlideHorizontally

Gets or sets a value that indicates whether the cross-slide axis is horizontal.

For more details on this API, please see the the UWP WinRT CrossSlideHorizontally topic.

CrossSlideThresholds

Gets or sets values that indicate the distance thresholds for a CrossSliding interaction.

For more details on this API, please see the the UWP WinRT CrossSlideThresholds topic.

GestureSettings

Gets or sets a value that indicates the gesture and manipulation settings supported by an application.

For more details on this API, please see the the UWP WinRT GestureSettings topic.

InertiaExpansion

Gets or sets a value that indicates the relative change in size of an object from the start of inertia to the end of inertia (when resizing, or scaling, is complete).

For more details on this API, please see the the UWP WinRT InertiaExpansion topic.

InertiaExpansionDeceleration

Gets or sets a value that indicates the rate of deceleration from the start of inertia to the end of inertia (when the resizing, or expansion, manipulation is complete).

For more details on this API, please see the the UWP WinRT InertiaExpansionDeceleration topic.

InertiaRotationAngle

Gets or sets a value that indicates the final angle of rotation of an object at the end of inertia (when the rotation manipulation is complete).

For more details on this API, please see the the UWP WinRT InertiaRotationAngle topic.

InertiaRotationDeceleration

Gets or sets a value that indicates the rate of deceleration from the start of inertia to the end of inertia (when the rotation manipulation is complete).

For more details on this API, please see the the UWP WinRT InertiaRotationDeceleration topic.

InertiaTranslationDeceleration

Gets or sets a value that indicates the rate of deceleration from the start of inertia to the end of inertia (when the translation manipulation is complete).

For more details on this API, please see the the UWP WinRT InertiaTranslationDeceleration topic.

InertiaTranslationDisplacement

Gets or sets a value that indicates the relative change in the screen location of an object from the start of inertia to the end of inertia (when the translation manipulation is complete).

For more details on this API, please see the the UWP WinRT InertiaTranslationDisplacement topic.

IsActive

Gets a value that indicates whether an interaction is being processed.

For more details on this API, please see the the UWP WinRT IsActive topic.

IsInertial

Gets a value that indicates whether a manipulation is still being processed during inertia (no input points are active).

For more details on this API, please see the the UWP WinRT IsInertial topic.

ManipulationExact

Gets or sets a value that indicates whether the exact distance from initial contact to end of the interaction is reported.

For more details on this API, please see the the UWP WinRT ManipulationExact topic.

MouseWheelParameters

Gets a set of properties that are associated with the wheel button of a mouse device.

For more details on this API, please see the the UWP WinRT MouseWheelParameters topic.

PivotCenter

Gets or sets the center point for a rotation interaction when single pointer input is detected.

For more details on this API, please see the the UWP WinRT PivotCenter topic.

PivotRadius

Gets or sets the radius, from the PivotCenter to the pointer input, for a rotation interaction when single pointer input is detected.

For more details on this API, please see the the UWP WinRT PivotRadius topic.

ShowGestureFeedback

Gets or sets a value that indicates whether visual feedback is displayed during an interaction.

For more details on this API, please see the the UWP WinRT ShowGestureFeedback topic.

Methods

CanBeDoubleTap(PointerPoint)

Identifies whether a tap can still be interpreted as the second tap of a double tap gesture.

For more details on this API, please see the the UWP WinRT CanBeDoubleTap topic.

CompleteGesture()

Causes the gesture recognizer to finalize an interaction.

For more details on this API, please see the the UWP WinRT CompleteGesture topic.

ProcessDownEvent(PointerPoint)

Processes pointer input and raises the GestureRecognizer events appropriate to a pointer down action (for the gestures and manipulations specified by the GestureSettings property).

For more details on this API, please see the the UWP WinRT ProcessDownEvent topic.

ProcessInertia()

Performs inertia calculations and raises the various inertia events.

For more details on this API, please see the the UWP WinRT ProcessInertia topic.

ProcessMouseWheelEvent(PointerPoint, Boolean, Boolean)

Processes pointer input and raises the GestureRecognizer events appropriate to a mouse wheel action (for the gestures and manipulations specified by the GestureSettings property).

For more details on this API, please see the the UWP WinRT ProcessMouseWheelEvent topic.

ProcessMoveEvents(IVector<PointerPoint>)

Processes pointer input and raises the GestureRecognizer events appropriate to a pointer move action (for the gestures and manipulations specified by the GestureSettings property).

For more details on this API, please see the the UWP WinRT ProcessMoveEvents topic.

ProcessUpEvent(PointerPoint)

Processes pointer input and raises the GestureRecognizer events appropriate to a pointer up action (for the gestures and manipulations specified by the GestureSettings property).

For more details on this API, please see the the UWP WinRT ProcessUpEvent topic.

Events

CrossSliding

Occurs when a user performs a slide or swipe gesture (through a single touch contact) within a content area that supports panning along a single axis only. The gesture must occur in a direction that is perpendicular to this panning axis.

For more details on this API, please see the the UWP WinRT CrossSliding topic.

Dragging

Occurs when a user performs a slide or swipe gesture with a mouse or pen/stylus (single contact).

For more details on this API, please see the the UWP WinRT Dragging topic.

Holding

Occurs when a user performs a press and hold gesture (with a single touch, mouse, touchpad, or pen/stylus contact).

For more details on this API, please see the the UWP WinRT Holding topic.

ManipulationCompleted

Occurs when the input points are lifted and all subsequent motion (translation, expansion, or rotation) through inertia has ended.

For more details on this API, please see the the UWP WinRT ManipulationCompleted topic.

ManipulationInertiaStarting

Occurs when all contact points are lifted during a manipulation and the velocity of the manipulation is significant enough to initiate inertia behavior (translation, expansion, or rotation continue after the input pointers are lifted).

For more details on this API, please see the the UWP WinRT ManipulationInertiaStarting topic.

ManipulationStarted

Occurs when one or more input points have been initiated and subsequent motion (translation, expansion, or rotation) has begun.

For more details on this API, please see the the UWP WinRT ManipulationStarted topic.

ManipulationUpdated

Occurs after one or more input points have been initiated and subsequent motion (translation, expansion, or rotation) is under way.

For more details on this API, please see the the UWP WinRT ManipulationUpdated topic.

RightTapped

Occurs when the pointer input is interpreted as a right-tap gesture, regardless of input device.

Examples include:

  • Right mouse or touchpad button click
  • Pen barrel button click
  • Touch or pen press and hold

For more details on this API, please see the the UWP WinRT RightTapped topic.

Tapped

Occurs when the pointer input is interpreted as a tap gesture.

For more details on this API, please see the the UWP WinRT Tapped topic.

Applies to