MouseEventArgs MouseEventArgs MouseEventArgs Class


Contains event data for the MouseMoved event.

public sealed class MouseEventArgs : IMouseEventArgspublic sealed class MouseEventArgs : IMouseEventArgsPublic NotInheritable Class MouseEventArgs Implements IMouseEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


JavaScript: This object is accessed when you implement a handler to respond to MouseMoved events.

The Device Capabilities Sample demonstrates how to detect the presence of input devices and retrieve the capabilities and attributes of each device.


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


MouseDelta MouseDelta MouseDelta

Gets a value that indicates the change in the screen location of the mouse pointer since the last mouse event.

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

The change in screen location of the mouse pointer, relative to the location of the last mouse event.