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?
Look at WriteableBitmap.Render . It takes a UIElement as argument which could be the root of the XAML tree that you want to convert.
您可以使用ImageTools库 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.