public override void MouseUp(MouseEventArgs e) { if (IsDrawing) { IsDrawing = false; CreationDrawable = null; if (startPoint != currentPoint) { var ellipse = GetEllipse(true); Canvas.AddEllipse(ellipse); } RepaintCanvas(); } }