DraggingEventArgs DraggingEventArgs DraggingEventArgs DraggingEventArgs Class

Contains event data for the Dragging event.

Syntax

Declaration

public sealed class DraggingEventArgspublic sealed class DraggingEventArgsPublic NotInheritable Class DraggingEventArgspublic sealed class DraggingEventArgs

Remarks

JavaScript: This object is accessed in a Dragging 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 state of the Dragging event.

Gets the device type of the input source.

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

Properties

  • DraggingState
    DraggingState
    DraggingState
    DraggingState

    Gets the state of the Dragging event.

    public DraggingState DraggingState { get; }public DraggingState DraggingState { get; }Public ReadOnly Property DraggingState As DraggingStatepublic DraggingState DraggingState { get; }

    Property Value

  • 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 PointerDeviceTypepublic PointerDeviceType PointerDeviceType { get; }

    Property Value

  • Position
    Position
    Position
    Position

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

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

    Property Value

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