Is there any way to get at the internal structure of a Geometry instance from WPF?
I need to convert a string of user-entered Geometry Data, such as
M10,100 C10,300 300,-200 300,100 Z
in to separate Geometry commands (Move, Cubic Bezier Curve, Close). I found the Geometry.Parse method that can convert the string in to an actual Geometry instance, but there doesn't seem to be any way to access the details of the structure programatically that I can find.
I was in the process of manually parsing the data when I stumbled across Geometry.Parse, and I can continue that if there is no better way, but if there is already a way to do this in the framework, I would obviously prefer it.
The reason I need this, is that I am writing a simple geometry data editor. I have everything working to generate the path data string, but would like to allow the user to import a string in to my application.
