Mouse Members

Represents the mouse device to a specific thread.

The Mouse type exposes the following members.

  NameDescription
Public method Static member AddGotMouseCaptureHandler Adds a handler for the GotMouseCapture attached event.
Public method Static member AddLostMouseCaptureHandler Adds a handler for the LostMouseCapture attached event.
Public method Static member AddMouseDownHandler Adds a handler for the MouseDown attached event.
Public method Static member AddMouseEnterHandler Adds a handler for the MouseEnter attached event.
Public method Static member AddMouseLeaveHandler Adds a handler for the MouseLeave attached event.
Public method Static member AddMouseMoveHandler Adds a handler for the MouseMove attached event.
Public method Static member AddMouseUpHandler Adds a handler for the MouseUp attached event.
Public method Static member AddMouseWheelHandler Adds a handler for the MouseWheel attached event.
Public method Static member AddPreviewMouseDownHandler Adds a handler for the PreviewMouseDown attached event.
Public method Static member AddPreviewMouseDownOutsideCapturedElementHandler Adds a handler for the PreviewMouseDownOutsideCapturedElement attached event.
Public method Static member AddPreviewMouseMoveHandler Adds a handler for the PreviewMouseMove attached event.
Public method Static member AddPreviewMouseUpHandler Adds a handler for the PreviewMouseUp attached event.
Public method Static member AddPreviewMouseUpOutsideCapturedElementHandler Adds a handler for the PreviewMouseUpOutsideCapturedElement attached event.
Public method Static member AddPreviewMouseWheelHandler Adds a handler for the PreviewMouseWheel attached event.
Public method Static member AddQueryCursorHandler Adds a handler for the QueryCursor attached event.
Public method Static member Capture Overloaded. Captures mouse input to the specified element.
Public method Static member GetIntermediatePoints Retrieves up to 64 previous coordinates of the mouse pointer since the last mouse move event.
Public method Static member GetPosition Gets the position of the mouse relative to a specified element.
Public method Static member RemoveGotMouseCaptureHandler Removes a handler for the GotMouseCapture attached event.
Public method Static member RemoveLostMouseCaptureHandler Removes a handler for the LostMouseCapture attached event.
Public method Static member RemoveMouseDownHandler Removes a handler for the MouseDown attached event.
Public method Static member RemoveMouseEnterHandler Removes a handler for the MouseEnter attached event.
Public method Static member RemoveMouseLeaveHandler Removes a handler for the MouseLeave attached event.
Public method Static member RemoveMouseMoveHandler Removes a handler for the MouseMove attached event.
Public method Static member RemoveMouseUpHandler Removes a handler for the MouseUp attached event.
Public method Static member RemoveMouseWheelHandler Removes a handler for the MouseWheel attached event.
Public method Static member RemovePreviewMouseDownHandler Removes a handler for the PreviewMouseDown attached event.
Public method Static member RemovePreviewMouseDownOutsideCapturedElementHandler Removes a handler for the PreviewMouseDownOutsideCapturedElement attached event.
Public method Static member RemovePreviewMouseMoveHandler Removes a handler for the PreviewMouseMove attached event.
Public method Static member RemovePreviewMouseUpHandler Removes a handler for the PreviewMouseUp attached event.
Public method Static member RemovePreviewMouseUpOutsideCapturedElementHandler Removes a handler for the PreviewMouseUpOutsideCapturedElement attached event.
Public method Static member RemovePreviewMouseWheelHandler Removes a handler for the PreviewMouseWheel attached event.
Public method Static member RemoveQueryCursorHandler Removes a handler for the QueryCursor attached event.
Public method Static member SetCursor Sets the mouse pointer to the specified Cursor.
Public method Static member Synchronize Forces the mouse to resynchronize.
Public method Static member UpdateCursor Forces the mouse cursor to be updated.
Top

  NameDescription
Public field Static member GotMouseCaptureEvent Identifies the GotMouseCapture attached event.
Public field Static member LostMouseCaptureEvent Identifies the LostMouseCapture attached event.
Public field Static member MouseDownEvent Identifies the MouseDown attached event.
Public field Static member MouseEnterEvent Identifies the MouseEnter attached event.
Public field Static member MouseLeaveEvent Identifies the MouseLeave attached event.
Public field Static member MouseMoveEvent Identifies the MouseMove attached event.
Public field Static member MouseUpEvent Identifies the MouseUp attached event.
Public field Static member MouseWheelDeltaForOneLine Represents the number of units the mouse wheel is rotated to scroll one line.
Public field Static member MouseWheelEvent Identifies the MouseWheel attached event.
Public field Static member PreviewMouseDownEvent Identifies the PreviewMouseDown attached event.
Public field Static member PreviewMouseDownOutsideCapturedElementEvent Identifies the PreviewMouseDownOutsideCapturedElement attached event.
Public field Static member PreviewMouseMoveEvent Identifies the PreviewMouseMove attached event.
Public field Static member PreviewMouseUpEvent Identifies the PreviewMouseUp attached event.
Public field Static member PreviewMouseUpOutsideCapturedElementEvent Identifies the PreviewMouseUpOutsideCapturedElement attached event.
Public field Static member PreviewMouseWheelEvent Identifies the PreviewMouseWheel attached event.
Public field Static member QueryCursorEvent Identifies the QueryCursor attached event.
Top

  NameDescription
Public property Static member Captured Gets the element that has captured the mouse.
Public property Static member DirectlyOver Gets the element the mouse pointer is directly over.
Public property Static member LeftButton Gets the state of the left button of the mouse.
Public property Static member MiddleButton Gets the state of the middle button of the mouse.
Public property Static member OverrideCursor Gets or sets the cursor for the entire application.
Public property Static member PrimaryDevice Gets the primary mouse device.
Public property Static member RightButton Gets the state of the right button.
Public property Static member XButton1 Gets the state of the first extended button.
Public property Static member XButton2 Gets the state of the second extended button.
Top

  NameDescription
Public attached event GotMouseCapture Occurs when an element captures the mouse.
Public attached event LostMouseCapture Occurs when an element loses mouse capture.
Public attached event MouseDown Occurs when any mouse button is depressed.
Public attached event MouseEnter Occurs when the mouse pointer enters the boundaries of an element.
Public attached event MouseLeave Occurs when the mouse pointer leaves the boundaries of an element.
Public attached event MouseMove Occurs when the mouse pointer moves.
Public attached event MouseUp Occurs when any mouse button is released.
Public attached event MouseWheel Occurs when the mouse wheel is rotated.
Public attached event PreviewMouseDown Occurs when any mouse button is depressed.
Public attached event PreviewMouseDownOutsideCapturedElement Occurs when the primary mouse button is pressed outside the element that is capturing mouse events.
Public attached event PreviewMouseMove Occurs when the mouse moves over an element.
Public attached event PreviewMouseUp Occurs when any mouse button is released.
Public attached event PreviewMouseUpOutsideCapturedElement Occurs when the primary mouse button is released outside the element that is capturing mouse events.
Public attached event PreviewMouseWheel Occurs when the mouse wheel rotates.
Public attached event QueryCursor Occurs when an element queries for the current mouse cursor.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft