UIElement.ReleasePointerCaptures UIElement.ReleasePointerCaptures UIElement.ReleasePointerCaptures UIElement.ReleasePointerCaptures Method

Definition

Releases all pointer captures held by this element.

public : void ReleasePointerCaptures()
void ReleasePointerCaptures() const;
public void ReleasePointerCaptures()
Public Sub ReleasePointerCaptures()

Remarks

Because there are input scenarios such as manipulations that involve more than one pointer point, the Windows Runtime enables capturing more than one pointer at a time. Calling ReleasePointerCapture removes a specific Pointer from the collection as identified by its ID, whereas ReleasePointerCaptures clears the entire collection.

User action that invalidates pointer capture such as releasing from a pointer point also changes capture state. For more info, see Mouse interactions and Handle pointer input.

The PointerCaptures property exposes a view of which pointer points are currently captured by the UIElement.

See also