开发者

Converting XAML to bitmap in Silverlight

开发者 https://www.devze.com 2022-12-30 05:06 出处:网络
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.

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

精彩评论

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