UIElement.PointerCaptureLost 이벤트

정의

이 요소가 이전에 보유한 포인터 캡처가 다른 요소 또는 다른 곳으로 이동할 때 발생합니다.

public:
 virtual event PointerEventHandler ^ PointerCaptureLost;
// Register
event_token PointerCaptureLost(PointerEventHandler const& handler) const;

// Revoke with event_token
void PointerCaptureLost(event_token const* cookie) const;

// Revoke with event_revoker
UIElement::PointerCaptureLost_revoker PointerCaptureLost(auto_revoke_t, PointerEventHandler const& handler) const;
public event PointerEventHandler PointerCaptureLost;
function onPointerCaptureLost(eventArgs) { /* Your code */ }
uIElement.addEventListener("pointercapturelost", onPointerCaptureLost);
uIElement.removeEventListener("pointercapturelost", onPointerCaptureLost);
- or -
uIElement.onpointercapturelost = onPointerCaptureLost;
Public Custom Event PointerCaptureLost As PointerEventHandler 
<uiElement PointerCaptureLost="eventhandler"/>

이벤트 유형

설명

중요

PointerCaptureLost는 PointerReleased 대신 실행될 수 있습니다. PointerPressedPointerReleased 이벤트는 항상 쌍으로 발생하지 않습니다. 제대로 작동하려면 앱이 Press 작업에 대한 결론을 나타내고 PointerCaptureLost를 포함하는 모든 이벤트를 수신 대기하고 처리해야 합니다. 포인터는 사용자 상호 작용으로 인해 또는 프로그래밍 방식으로 다른 포인터를 캡처하거나 현재 포인터 캡처를 의도적으로 해제했기 때문에 캡처를 잃을 수 있습니다.

포인터가 성공적으로 캡처될 때 발생하는 이벤트는 없습니다. 포인터를 캡처하려면 CapturePointer 메서드를 호출하며, 일반적으로 다른 포인터 이벤트에 대한 이벤트 처리기의 컨텍스트 내에서 수행됩니다. 포인터를 캡처하는 방법과 포인터를 캡처하려는 이유에 대한 자세한 내용은 CapturePointer 또는 마우스 상호 작용을 참조하세요.

PointerCaptureLost는 라우트된 이벤트입니다. 라우트된 이벤트 개념에 대한 자세한 내용은 이벤트 및 라우트된 이벤트 개요를 참조하세요.

PointerCaptureLost는 이벤트에 대한 이벤트 데이터가 처리됨으로 표시된 경우에도 호출될 경로에 이벤트 처리기를 연결하는 기능을 지원 합니다. AddHandler를 참조하세요.

적용 대상

추가 정보