HoldingState HoldingState HoldingState HoldingState Enum

Specifies the state of the Holding event.

Syntax

Declaration

public enum HoldingStatepublic enum HoldingStatePublic Enum HoldingStatepublic enum HoldingState

Remarks

To support Holding with touch and pen/stylus input, specify GestureSettings in the GestureSettings property.

To support Holding with mouse input, specify GestureSettings in the GestureSettings property.

The Holding event is fired twice: Once when holding starts (HoldingState ) and again when holding ends (HoldingState or HoldingState ).

Fields

Canceled
Canceled
Canceled
Canceled

An additional contact is detected, a subsequent gesture (such as a slide) is detected, or the CompleteGesture() method is called.

Completed
Completed
Completed
Completed

The single contact is lifted.

Started
Started
Started
Started

A single contact has been detected and a time threshold is crossed without the contact being lifted, another contact detected, or another gesture started.

Note

The press and hold time threshold can be set in the Hardware and Sound control panel.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.UI.Input.dll