I am trying to send my dynamically created silverlight 2 page/image to a an ASP.net web service to render it as an bitmap image.
I can see many examples how to get the XAML using javascript (see here) in version 1 of silverlight but I have a few differences.
a) I am using silverlight 2 RC1
b) I have dynamically add controls to the page in c#
c) I would prefer to use c# to get the new XAML to keep all the coed in one place.
does anyone know how to extract the XAML from a control or the page in c#?
Thank you
Update: This is now possible under silverlight 3 using a writable bitmap to save the XAML as a JPEG see my blog post here: http://blog.blueboxes.co.uk/2009/07/21/rendering-xaml-to-a-jpeg-using-silverlight-3/