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

MouseCaptureController.CaptureMouse

切换到手册
public static void CaptureMouse (Experimental.UIElements.IEventHandler handler);

参数

handlerThe event handler that captures mouse events.

描述

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.