开发者

Converting XAML to bitmap in Silverlight

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜