开发者

Get Image from UserControl - Silverlight

开发者 https://www.devze.com 2023-02-25 17:35 出处:网络
Right now i\'m using ImageTools to load the image into a pdf using SilverPDF, the image that i\'m loading is from the current LayoutGrid, however, i want to get the image from another user control, wi

Right now i'm using ImageTools to load the image into a pdf using SilverPDF, the image that i'm loading is from the current LayoutGrid, however, i want to get the image from another user control, without navigating to it. First i thought that it would be as easy as Creating an instance of that user control and get into it's LayoutRoot property开发者_开发技巧 but that is not rendering correctly into the pdf (i get the controls overlaped) is there a way to "render" the control "in memory" without actually loading into the window?, any help is highly appreciated.

PD, the versions that i'm currently working are: .NET Framework 4.0, Silverlight 4.0 & C#

-Regards


usercontrol must be in visual tree.

you can add in LayoutGrid, take necessary for pdf and remove from LayoutGrid.

0

精彩评论

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