Пример #1
0
        public override void MouseUp(MouseEventArgs e)
        {
            if (IsDrawing)
            {
                IsDrawing        = false;
                CreationDrawable = null;

                if (startPoint != currentPoint)
                {
                    var ellipse = GetEllipse(true);
                    Canvas.AddEllipse(ellipse);
                }

                RepaintCanvas();
            }
        }