CoreComponentInputSource.ClosestInteractiveBoundsRequested Событие

Определение

Примечание

Не предназначено для общего использования.

Происходит, когда диспетчер входных данных платформы запрашивает ограничивающий прямоугольник интерактивного элемента внутри определенного ограничивающего прямоугольника и ближе всего к определенному указателю.

// Register
event_token ClosestInteractiveBoundsRequested(TypedEventHandler<CoreComponentInputSource, ClosestInteractiveBoundsRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreComponentInputSource::ClosestInteractiveBoundsRequested_revoker ClosestInteractiveBoundsRequested(auto_revoke_t, TypedEventHandler<CoreComponentInputSource, ClosestInteractiveBoundsRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreComponentInputSource,ClosestInteractiveBoundsRequestedEventArgs> ClosestInteractiveBoundsRequested;
function onClosestInteractiveBoundsRequested(eventArgs) { /* Your code */ }
coreComponentInputSource.addEventListener("closestinteractiveboundsrequested", onClosestInteractiveBoundsRequested);
coreComponentInputSource.removeEventListener("closestinteractiveboundsrequested", onClosestInteractiveBoundsRequested);
- or -
coreComponentInputSource.onclosestinteractiveboundsrequested = onClosestInteractiveBoundsRequested;
Public Custom Event ClosestInteractiveBoundsRequested As TypedEventHandler(Of CoreComponentInputSource, ClosestInteractiveBoundsRequestedEventArgs) 

Тип события

Требования к Windows

Семейство устройств
Windows 10 Anniversary Edition (появилось в 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (появилось в v3.0)

Применяется к