public static void MouseDoubleClick(NSView view, IControlMouseInteraction control, NSEvent theEvent) { var point = GetMouseLocation(view, theEvent); var button = GetMouseButtonType(theEvent); var keysHeld = GetKeysHeld(theEvent); //Console.WriteLine("GenericControlHelper - MouseClick - point: {0} bounds: {1}", point, view.Bounds); control.MouseDoubleClick(point.X, point.Y, button, keysHeld); }
public static void MouseDoubleClick(MouseEventArgs e, UIElement element, IControlMouseInteraction control) { var location = e.GetPosition(element); var keysHeld = GetKeysHeld(); float x = (float)location.X; float y = (float)location.Y; if (e.LeftButton == MouseButtonState.Released) control.MouseDoubleClick(x, y, MouseButtonType.Left, keysHeld); else if (e.MiddleButton == MouseButtonState.Released) control.MouseDoubleClick(x, y, MouseButtonType.Middle, keysHeld); else if (e.RightButton == MouseButtonState.Released) control.MouseDoubleClick(x, y, MouseButtonType.Right, keysHeld); }