private void handleMouseUp(MouseEventArgs param) { if (param == null) { throw new InvalidOperationException(GetFunctionName()); } var sender = param.Source as IInputElement; if (sender == null) { throw new InvalidOperationException(GetFunctionName()); } bool isScreenDirty = false; // Ist die Kamera Bewegung aktiviert? if ((Keyboard.Modifiers & ModifierKeys.Alt) > 0) { _camera.OnMouseUp(param, ref isScreenDirty); } else { SelectedTool.OnMouseUp(param, ref isScreenDirty); //_tool.OnMouseUp(param); } Mouse.OverrideCursor = null; if (isScreenDirty) { _dxElement.Render(); } }
public override void OnMouseUp(MouseEventArgs e) { SelectedTool?.OnMouseUp(new MouseEventArgs(e.Buttons, e.Modifiers, e.Location * BGI.Scale, e.Delta, e.Pressure)); if (!e.Handled) { base.OnMouseUp(e); } }
public override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); if (!AllowEditing) { return; } if (SelectedTool != null) { SelectedTool.OnMouseUp(e); } }
public void ButtonRelease(double x, double y) { EndPressPoint = new Cairo.PointD(x / Zoom, y / Zoom); IsPressed = false; IsMoving = false; if (SelectedTool != null) { SelectedTool.OnMouseUp(); } if (SelectedControl != null) { WorkspaceService.ShowInPropertyGrid(SelectedControl.ControlModel); } WorkspaceService.InvalidateDesignArea(); }