views:

158

answers:

1

I have Expression blend 4 and I want to create a button to export to an image file the current view in silverlight

Thanks!

+2  A: 

You can render the Canvas to a WriteableBitmap and use this as the Source of an Image control:

var wb = new WriteableBitmap(myCanvas, null);
myImageControl.Source = wb;
Rene Schulte
where do I put this code? I'm new to expression blend ;)
foxog
In the code-behind.
Rene Schulte