//release the mouse public void PointerReleased(double x, double y) { if (_isPressed) { _isPressed = false; _shapeFactory.PointerReleased(x, y); NotifyModelChanged(); } }