Aracılığıyla paylaş


HoldingState Enum

Definition

Specifies the state of the Holding event.

public enum class HoldingState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class HoldingState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum HoldingState
var value = Windows.UI.Input.HoldingState.started
Public Enum HoldingState
Inheritance
HoldingState
Attributes

Windows requirements

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

Fields

Name Value Description
Started 0

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.

Completed 1

The single contact is lifted.

Canceled 2

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

Remarks

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

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

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

Applies to

See also