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

MouseCaptureController.TakeMouseCapture

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

Parameters

handlerThe event handler to capture the mouse.

Description

Assigns an event handler to capture the mouse.

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