Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Mouse Members

Represents the mouse device to a specific thread.

The following tables list the members exposed by the Mouse type.

  Name Description
Public field Static GotMouseCaptureEvent Identifies the GotMouseCapture attached event.
Public field Static LostMouseCaptureEvent Identifies the LostMouseCapture attached event.
Public field Static MouseDownEvent Identifies the MouseDown attached event.
Public field Static MouseEnterEvent Identifies the MouseEnter attached event.
Public field Static MouseLeaveEvent Identifies the MouseLeave attached event.
Public field Static MouseMoveEvent Identifies the MouseMove attached event.
Public field Static MouseUpEvent Identifies the MouseUp attached event.
Public field Static MouseWheelDeltaForOneLine Represents the number of units the mouse wheel is rotated to scroll one line.
Public field Static MouseWheelEvent Identifies the MouseWheel attached event.
Public field Static PreviewMouseDownEvent Identifies the PreviewMouseDown attached event.
Public field Static PreviewMouseDownOutsideCapturedElementEvent Identifies the PreviewMouseDownOutsideCapturedElement attached event.
Public field Static PreviewMouseMoveEvent Identifies the PreviewMouseMove attached event.
Public field Static PreviewMouseUpEvent Identifies the PreviewMouseUp attached event.
Public field Static PreviewMouseUpOutsideCapturedElementEvent Identifies the PreviewMouseUpOutsideCapturedElement attached event.
Public field Static PreviewMouseWheelEvent Identifies the PreviewMouseWheel attached event.
Public field Static QueryCursorEvent Identifies the QueryCursor attached event.
Top
  Name Description
Public property Static Captured Gets the element that has captured the mouse.
Public property Static DirectlyOver Gets the element the mouse pointer is directly over.
Public property Static LeftButton Gets the state of the left button of the mouse.
Public property Static MiddleButton Gets the state of the middle button of the mouse.
Public property Static OverrideCursor Gets or sets the cursor for the entire application.
Public property Static PrimaryDevice Gets the primary mouse device.
Public property Static RightButton Gets the state of the right button.
Public property Static XButton1 Gets the state of the first extended button.
Public property Static XButton2 Gets the state of the second extended button.
Top
(see also Protected Methods )
  Name Description
Public method Static AddGotMouseCaptureHandler Adds a handler for the GotMouseCapture attached event.
Public method Static AddLostMouseCaptureHandler Adds a handler for the LostMouseCapture attached event.
Public method Static AddMouseDownHandler Adds a handler for the MouseDown attached event.
Public method Static AddMouseEnterHandler Adds a handler for the MouseEnter attached event.
Public method Static AddMouseLeaveHandler Adds a handler for the MouseLeave attached event.
Public method Static AddMouseMoveHandler Adds a handler for the MouseMove attached event.
Public method Static AddMouseUpHandler Adds a handler for the MouseUp attached event.
Public method Static AddMouseWheelHandler Adds a handler for the MouseWheel attached event.
Public method Static AddPreviewMouseDownHandler Adds a handler for the PreviewMouseDown attached event.
Public method Static AddPreviewMouseDownOutsideCapturedElementHandler Adds a handler for the PreviewMouseDownOutsideCapturedElement attached event.
Public method Static AddPreviewMouseMoveHandler Adds a handler for the PreviewMouseMove attached event.
Public method Static AddPreviewMouseUpHandler Adds a handler for the PreviewMouseUp attached event.
Public method Static AddPreviewMouseUpOutsideCapturedElementHandler Adds a handler for the PreviewMouseUpOutsideCapturedElement attached event.
Public method Static AddPreviewMouseWheelHandler Adds a handler for the PreviewMouseWheel attached event.
Public method Static AddQueryCursorHandler Adds a handler for the QueryCursor attached event.
Public method Static Capture Overloaded. Captures mouse input to the specified element.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetIntermediatePoints Retrieves up to 64 previous coordinates of the mouse pointer since the last mouse move event.
Public method Static GetPosition Gets the position of the mouse relative to a specified element.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RemoveGotMouseCaptureHandler Removes a handler for the GotMouseCapture attached event.
Public method Static RemoveLostMouseCaptureHandler Removes a handler for the LostMouseCapture attached event.
Public method Static RemoveMouseDownHandler Removes a handler for the MouseDown attached event.
Public method Static RemoveMouseEnterHandler Removes a handler for the MouseEnter attached event.
Public method Static RemoveMouseLeaveHandler Removes a handler for the MouseLeave attached event.
Public method Static RemoveMouseMoveHandler Removes a handler for the MouseMove attached event.
Public method Static RemoveMouseUpHandler Removes a handler for the MouseUp attached event.
Public method Static RemoveMouseWheelHandler Removes a handler for the MouseWheel attached event.
Public method Static RemovePreviewMouseDownHandler Removes a handler for the PreviewMouseDown attached event.
Public method Static RemovePreviewMouseDownOutsideCapturedElementHandler Removes a handler for the PreviewMouseDownOutsideCapturedElement attached event.
Public method Static RemovePreviewMouseMoveHandler Removes a handler for the PreviewMouseMove attached event.
Public method Static RemovePreviewMouseUpHandler Removes a handler for the PreviewMouseUp attached event.
Public method Static RemovePreviewMouseUpOutsideCapturedElementHandler Removes a handler for the PreviewMouseUpOutsideCapturedElement attached event.
Public method Static RemovePreviewMouseWheelHandler Removes a handler for the PreviewMouseWheel attached event.
Public method Static RemoveQueryCursorHandler Removes a handler for the QueryCursor attached event.
Public method Static SetCursor Sets the mouse pointer to the specified Cursor.
Public method Static Synchronize Forces the mouse to resynchronize.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Static UpdateCursor Forces the mouse cursor to be updated.
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
  Name Description
Public event Static GotMouseCapture Occurs when this element (or a child element along the route) captures the mosue.
Public event Static LostMouseCapture Occurs when this element (or a child element along the route) loses mouse capture.
Public event Static MouseDown Occurs when any mouse button is depressed.
Public event Static MouseEnter Occurs when the mouse pointer enters the boundaries of an element.
Public event Static MouseLeave Occurs when the mouse pointer leaves the boundaries of an element.
Public event Static MouseMove Occurs when the mouse pointer moves.
Public event Static MouseUp Occurs when any mouse button is released.
Public event Static MouseWheel Occurs when the mouse wheel is rotated.
Public event Static PreviewMouseDown Occurs when any mouse button is depressed.
Public event Static PreviewMouseDownOutsideCapturedElement Occurs when the primary mouse button is pressed outside the element that is capturing mouse events.
Public event Static PreviewMouseMove Occurs when the mouse moves over an element.
Public event Static PreviewMouseUp Occurs when any mouse button is released.
Public event Static PreviewMouseUpOutsideCapturedElement Occurs when the primary mouse button is released outside the element that is capturing mouse events.
Public event Static PreviewMouseWheel Occurs when the mouse wheel rotates.
Public event Static QueryCursor Occurs when an element queries for the current mouse cursor.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.