ReleaseMouseCapture Method

UIElement.ReleaseMouseCapture Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public void ReleaseMouseCapture()

The ReleaseMouseCapture method disables touch capture for an object that has captured touch input by using the CaptureMouse method. When an object is capturing touch input, it receives touch input whether or not the user’s finger is within its bounds.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft