TappedEventArgs TappedEventArgs TappedEventArgs TappedEventArgs Class

Contains event data for the Tapped event.

Syntax

Declaration

public sealed class TappedEventArgspublic sealed class TappedEventArgsPublic NotInheritable Class TappedEventArgs

Remarks

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

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

Properties summary

Gets the device type of the input source.

Gets the location of the touch, mouse, or pen/stylus contact.

Gets the number of times the tap interaction was detected.

Properties

  • PointerDeviceType
    PointerDeviceType
    PointerDeviceType
    PointerDeviceType

    Gets the device type of the input source.

    public PointerDeviceType PointerDeviceType { get; }public PointerDeviceType PointerDeviceType { get; }Public ReadOnly Property PointerDeviceType As PointerDeviceType

    Property Value

  • Position
    Position
    Position
    Position

    Gets the location of the touch, mouse, or pen/stylus contact.

    public Point Position { get; }public Point Position { get; }Public ReadOnly Property Position As Point

    Property Value

  • TapCount
    TapCount
    TapCount
    TapCount

    Gets the number of times the tap interaction was detected.

    public uint TapCount { get; }public uint TapCount { get; }Public ReadOnly Property TapCount As uint

    Property Value

    • uint
      uint
      uint
      uint

      The total number of taps.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.UI.Input.dll