Experimental: this API is experimental and might be changed or removed in the future.

MouseCaptureController.CaptureMouse

Switch to Manual
public static void CaptureMouse (Experimental.UIElements.IEventHandler handler);

Parameters

handlerThe event handler that captures mouse events.

Description

Assigns an event handler to capture mouse events.

If an event handler is already set to capture mouse events, the event handler is replaced with the handler specified by this method.