How do I create an XAML file from an object graph in Silverlight? -
this code use in .net, system.xaml doesn't exist in silverlight.
public static string createxaml(object source) { var reader = new xamlobjectreader(source); var xamlstring = new stringwriter(); var writer = new xamlxmlwriter(xamlstring, reader.schemacontext); while (reader.read()) { writer.writenode(reader); } writer.close(); return xamlstring.tostring(); }
well xamlwriter doesn't exist in silverlight.
you may want @ blog post creating 1 david poll's xamlwriter
the silverlightcontrib project has 1 silverlightcontrib
Comments
Post a Comment