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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -