Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UIElement.ReleaseMouseCapture Method

Removes mouse capture from a UIElement. After this call, typically no object holds mouse capture.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public void ReleaseMouseCapture()

The ReleaseMouseCapture method disables mouse capture for an object that has captured the mouse by using the CaptureMouse method. When an object has captured the mouse, it receives mouse input whether or not the mouse pointer is within its bounds.

Calling ReleaseMouseCapture on an object that did not have mouse capture has no effect.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2017 Microsoft