public override void RightMouseUp(NSEvent theEvent) { var p = ConvertPointFromView(theEvent.LocationInWindow, null); ButtonEventArgs args = new ButtonEventArgs(); args.X = p.X; args.Y = p.Y; args.Button = PointerButton.Right; context.InvokeUserCode(delegate { eventSink.OnButtonReleased(args); }); }
public override void RightMouseUp(NSEvent theEvent) { CGPoint p = this.ConvertPointFromEvent(theEvent); if (!Bounds.Contains(p)) { return; } ButtonEventArgs args = new ButtonEventArgs(); args.X = p.X; args.Y = p.Y; args.Button = PointerButton.Right; context.InvokeUserCode(delegate { eventSink.OnButtonReleased(args); }); }
void WidgetMouseUpHandler(object o, MouseButtonEventArgs e) { var args = ToXwtButtonArgs(e); Toolkit.Invoke(delegate() { eventSink.OnButtonReleased(args); }); if (args.Handled) { e.Handled = true; } }
void WidgetMouseUpHandler(object o, MouseButtonEventArgs e) { var args = e.ToXwtButtonArgs(Widget); Context.InvokeUserCode(delegate() { eventSink.OnButtonReleased(args); }); if (args.Handled) { e.Handled = true; } }