简体   繁体   中英

Get Image from UserControl - Silverlight

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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM