Esempio n. 1
0
        public static void DrawGeometry(this StreamGeometryContext ctx, Geometry geo)
        {
            var pathGeometry = geo as PathGeometry ?? PathGeometry.CreateFromGeometry(geo);

            foreach (var figure in pathGeometry.Figures)
            {
                ctx.DrawFigure(figure);
            }
        }