Basically I’m trying to do this:
Path path = new Path( );
string sData = "M 250,40 L200,20 L200,60 Z";
var converter = TypeDescriptor.GetConverter( typeof( Geometry ) );
path.Data = ( Geometry )converter.ConvertFrom( sData );
but it won’t compile, silverlight does not appear to have a TypeDescriptor class…
Try this:-
Edit
Should have been:
Usage:-
See follow up question: xaml parse exception when attempting to load xaml from codebehind