Possible to get the UIElements for each page?

2 posts, 0 answers
  1. Henrik
    Henrik avatar
    1 posts
    Member since:
    Oct 2013

    Posted 30 Oct 2013 Link to this post

    Hello,
    At my Company, we are currently evaluating your SL PDFViewer component.
    However, we have yet one major issue that need to solve before we can go through and buy your solution.

    Is it somehow possible to retrieve the UIElements (FrameworkElement, Canvas, etc.) for all pages from the code-behind?
    The reason for this request is that we need write our own print-mechanic in order to apply customer specific header, footer and watermark during run-time.

    Thank you in advance!

    Best Regards,
    Henrik
  2. Alexander
    Admin
    Alexander avatar
    41 posts

    Posted 01 Nov 2013 Link to this post

    Hi Henrik,

    RadPdfViewer only loads content which is inside the viewport, which means that you cannot get the UIElements for all pages from the visual tree. An easy workaround would be to put the control inside a StackPanel, which will load all the content and you will be able to retrieve the UIElements for all pages.

    Another way you could do this is using the ThumbnailFactory. This will create a snapshot for a given RadFixedPage and you could somehow modify this snapshot according your needs.

    I hope this is helpful. Please, do not hesitate to contact us if you have any other questions.

    Regards,
    Alexander
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top