This is a migrated thread and some comments may be shown as answers.

FindDialog

2 Answers 24 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Harald
Top achievements
Rank 1
Harald asked on 26 Jul 2015, 04:08 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 29 Jul 2015, 03:49 PM
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
0
Harald
Top achievements
Rank 1
answered on 09 Aug 2015, 04:00 PM
Thank you.
Tags
PDFViewer
Asked by
Harald
Top achievements
Rank 1
Answers by
Petya
Telerik team
Harald
Top achievements
Rank 1
Share this question
or