I need to programmatically PrtScr my controls in silverlight.(Save to bitmap)
How can i do this?
I need to programmatically PrtScr my controls in silverlight.(Save to bitmap) How can i
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In WPF you can use the RenderTagetBitmap class to convert a Visual to an image, however this is not present in Sivlerlight. The following article details a rather long winded approach you can use to (sort of) save visuals in Silverlight. It’s not a great solution though.
http://thedatafarm.com/blog/tablet/converting-silverlight-inkpresenter-images-to-a-png-file/