I want to convert XAML to bitmap in Silverlight (I'm using version 4). I saw that there was a simple solution for WP开发者_C百科F but the needed classes do not exist in Silverlight.
Has anyone done such a thing?
Look at WriteableBitmap.Render. It takes a UIElement as argument which could be the root of the XAML tree that you want to convert.
You can use the ImageTools library.
精彩评论