views:

158

answers:

2

Hi,

I want to convert XAML to bitmap in Silverlight (I'm using version 4). I saw that there was a simple solution for WPF but the needed classes do not exist in Silverlight.

Has anyone done such a thing?

A: 

You can use the ImageTools library.

ligaz
+2  A: 

Look at WriteableBitmap.Render. It takes a UIElement as argument which could be the root of the XAML tree that you want to convert.

Paul