Skip to content

Latest commit

 

History

History
24 lines (11 loc) · 1.32 KB

IViewManagerWithPointerEvents-api-windows.md

File metadata and controls

24 lines (11 loc) · 1.32 KB
id title
IViewManagerWithPointerEvents
IViewManagerWithPointerEvents

Kind: interface

EXPERIMENTAL

Experimental interface enabling view managers to release pointer capture from the React root view and start handling pointer events itself.

Methods

OnPointerEvent

void OnPointerEvent(Object view, ReactPointerEventArgs args)

When pointer events are received on the React root view, the top-level pointer event handler invokes this callback for each React view ancestor of the RoutedEventArgs.OriginalSource element with a view manager that implements IViewManagerWithPointerEvents to allow the view manager to modify handling for the pointer event. This can be used to refine the target view. E.g., setting the ReactPointerEventArgs.Target property to null will force the React root view to choose one of the view's ancestors as the hit target. Alternatively, the view manager may also set the ReactPointerEventArgs.Target to any descendent of provided view to enable hit testing on views that do not derive from UIElement.