Scrolling from another dialog

2 posts, 0 answers
  1. Lee
    Lee avatar
    10 posts
    Member since:
    Jan 2013

    Posted 07 Nov 2013 Link to this post

    In my application I have a scenario where the user has one window open with the PDF Viewer control and they are looking at a pdf file then my application displays a modal dialog.  The user needs to be able to still scroll up/down in the PDF Viewer while this modal dialog is open.  I have given them some shortcut keys to scroll a page at a time (ctrl + pg up & ctrl + pg down) and then I send these commands to the control on the other window from the modal window.  This works for scrolling by a page but a lot of the time they just need to scroll a few lines.  Is there any API for the PDFViewer control that will allow me to send a command to scroll up or down a few lines?

    Any help on this would be greatly appreciated!!!

    Thanks in advance,
    Lee
  2. Alexander
    Admin
    Alexander avatar
    41 posts

    Posted 12 Nov 2013 Link to this post

    Hello Lee,

    RadPdfViewer exposes MoveDownCommandDescriptor, MoveUpCommandDescriptor, MoveRightCommandDescriptor and MoveLeftCommandDescriptor which can be used to navigate in the document. Those command descriptors also take into account what is the current Mode (TextSelection or Pan) - when in selection mode the caret is moved, and in pan mode the document is scrolled. You can access the descriptors from the CommandDescriptors property of the control.

    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 WPF.
    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. UI for WPF is Visual Studio 2017 Ready
Back to Top