public void ToolkitMouseUp(ToolkitMouseButtons buttons, ToolkitKeys modifiers, int clicks, int x, int y, int delta) { IToolkitEventSink co = this.mControlWeakRef.Target as IToolkitEventSink; if (null != co) { co.ToolkitMouseUp(buttons, modifiers, clicks, x, y, delta); } }
// Override the button release event from Xsharp. protected override void OnButtonRelease(int x, int y, ButtonName button, ModifierMask modifiers) { if (sink != null) { sink.ToolkitMouseUp (DrawingWindow.MapButton(button), DrawingWindow.MapKey(KeyName.XK_VoidSymbol, modifiers), 1, x, y, 0); } }