FindDialog

3 posts, 1 answers
  1. Harald
    Harald avatar
    48 posts
    Member since:
    Oct 2013

    Posted 26 Jul 2015 Link to this post

    How can I use the FindDialog to the current document in the PDFViewer Control?

    Use the following commands, will show to the ​FindDialog, but there is no connection to the document.

    FindDialog mySearch = new FindDialog();
    mySearch.ShowDialog();

  2. Answer
    Petya
    Admin
    Petya avatar
    975 posts

    Posted 29 Jul 2015 Link to this post

    Hi Harald,

    Please take a look at the article concerning this functionality of RadPdfViewer. Basically, you need to register the dialog prior the initialization of the view (i.e. before InitializeComponent()). The command that shows the dialog is bound to the Ctrl+F shortcut, but you can also add it to a button.
    <telerik:RadToolBar DataContext="{Binding ElementName=pdfViewer, Path=CommandDescriptors}">
        <telerik:RadButton Content="Search" Command="{Binding ShowFindDialogCommandDescriptor.Command}" Visibility="{Binding ShowFindDialogCommandDescriptor.IsEnabled, Converter={StaticResource BoolToVisibilityConverter}}" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" Padding="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" IsBackgroundVisible="False"/>
    </telerik:RadToolBar>

    Hope this helps.

    Regards,
    Petya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Harald
    Harald avatar
    48 posts
    Member since:
    Oct 2013

    Posted 09 Aug 2015 in reply to Petya Link to this post

    Thank you.
Back to Top