This topic has not yet been rated - Rate this topic

HoldingEventArgs class

Contains event data for the Holding event.

Syntax


public ref class HoldingEventArgs sealed : Object

Attributes

MarshalingBehaviorAttribute(None)
VersionAttribute(NTDDI_WIN8)

Members

The HoldingEventArgs class has these types of members:

Methods

The HoldingEventArgs class inherits methods from the Object class (C#/VB/C++).

Properties

The HoldingEventArgs class has these properties.

PropertyAccess typeDescription

HoldingState

Read-onlyGets the state of the Holding event.

PointerDeviceType

Read-onlyGets the device type of the input source.

Position

Read-onlyGets the location of the touch, mouse, or pen/stylus contact.

 

Remarks

JavaScript: This object is accessed in a Holding event handler.

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).

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Windows Phone 8

This API is not implemented and will throw an exception if called.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

Windows.UI.Input Classes
TypedEventHandler

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.