UIElement.ReleaseMouseCapture Method

May 11, 2014

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

Show:
© 2014 Microsoft