static Wcd.Mgcg.CanvasFigureLoop ToCanvasFigureLoop(Win2D.CanvasFigureLoop canvasFigureLoop)
        {
            switch (canvasFigureLoop)
            {
            case Win2D.CanvasFigureLoop.Open:
                return(Wcd.Mgcg.CanvasFigureLoop.Open);

            case Win2D.CanvasFigureLoop.Closed:
                return(Wcd.Mgcg.CanvasFigureLoop.Closed);

            default:
                throw new InvalidOperationException();
            }
        }
 void Win2D.ICanvasPathReceiver.EndFigure(Win2D.CanvasFigureLoop figureLoop)
 {
     _builder.EndFigure(ToCanvasFigureLoop(figureLoop));
 }