CoreIndependentInputSource.PointerRoutedReleased 事件

定义

在曾经与指针关联(但当前未从中接收输入)的所有输入对象上发生,该指针在输入对象上触发 CoreIndependentInputSource.PointerReleased 事件。

// Register
event_token PointerRoutedReleased(TypedEventHandler<ICorePointerRedirector, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreIndependentInputSource::PointerRoutedReleased_revoker PointerRoutedReleased(auto_revoke_t, TypedEventHandler<ICorePointerRedirector, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<ICorePointerRedirector,PointerEventArgs> PointerRoutedReleased;
function onPointerRoutedReleased(eventArgs) { /* Your code */ }
coreIndependentInputSource.addEventListener("pointerroutedreleased", onPointerRoutedReleased);
coreIndependentInputSource.removeEventListener("pointerroutedreleased", onPointerRoutedReleased);
- or -
coreIndependentInputSource.onpointerroutedreleased = onPointerRoutedReleased;
Public Custom Event PointerRoutedReleased As TypedEventHandler(Of ICorePointerRedirector, PointerEventArgs) Implements PointerRoutedReleased

事件类型

实现

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

适用于