A String-To-PathGeometry Parser from https://stringtopathgeometry.codeplex.com/
Exemple #1
0
        public static Geometry Parse(string data)
        {
            var parser = new GeometryParser();

            return(parser.Convert(data));
            //var sb = new StringBuilder();
            //sb.Append("<Geometry xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>");
            //sb.Append(data);
            //sb.Append("</Geometry>");
            //var g = (Geometry) XamlReader.Load(sb.ToString());
            // Todo: Find out if this type could be frozen
            //g.Freeze(); ????
        }
        public static Geometry Parse(string data)
        {
            var parser = new GeometryParser();

            return(parser.Convert(data));
        }