public override void HandleMouseDown(MouseButtonEventArgs e)
        {
            base.HandleMouseDown(e);
            if (e.ChangedButton != MouseButton.Left)
            {
                return;
            }

            var point = e.GetPosition(Canvas);

            if (prePoint == default || (prePoint != default && point != prePoint))
            {
                var drawingPoint = new DrawingPoint(point);
                drawingPoint.Render(DrawingCanvas.DefaultPen);
                Canvas.AddVisual(drawingPoint);
            }

            prePoint = point;
        }
 public static Geometry ToNTSGeometry(this DrawingPoint drawingPoint)
 {
     return(new NetTopologySuite.Geometries.Point(drawingPoint.Point.ToCoordinate()));
 }