private void OnMouseDown(Event e) { MouseEvent mouseEvent = (MouseEvent)e; Point position = new Point(mouseEvent.PageX, mouseEvent.PageY); MouseButton button = converter.ConvertBackMouseButton(mouseEvent.Button); mouseDownHandled = ProcessMouseEvent(new RawMouseButtonEventArgs(button, MouseButtonState.Pressed, position, GetTimestamp())); if (mouseDownHandled || MouseDevice.CaptureTarget != null) { e.PreventDefault(); } }