Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.65 KB

uielement_releasepointercaptures_190109337.md

File metadata and controls

28 lines (17 loc) · 1.65 KB
-api-id -api-type
M:Microsoft.UI.Xaml.UIElement.ReleasePointerCaptures
winrt method

Microsoft.UI.Xaml.UIElement.ReleasePointerCaptures

-description

Releases all pointer captures held by this element.

-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.

-examples

-see-also

ReleasePointerCapture, CapturePointer, PointerReleased, PointerCaptureLost, Relative mouse movement and CoreWindow, Input sample