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

Pan and Text Selection buttons

2 Answers 100 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 12 Dec 2012, 03:54 PM
I know that since Q2 RadPdfViewer has a new property called Mode for choosing between pan and text selection. However the example in http://www.telerik.com/help/wpf/radpdfviewer-wiring-ui.html seems to use an old way. (It also doesn't have the example for text selection or find in the xaml even though the find is in the provided code behind).

It is probably just because I am new to WPF but I can't figure out what to do in the xaml. Could someone give me an updated example? Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Kammen
Telerik team
answered on 13 Dec 2012, 04:42 PM
Hi Seth,

You can find the XAML example in our online demo. It is almost identical in WPF and Silverlight.

Here is a sample code that will add both Pan and TextSelection modes to your RadToolBar:

<telerik:RadToggleButton IsChecked="{Binding FixedDocumentViewer.Mode, Mode=TwoWay, Converter={StaticResource ModeConverter}, ConverterParameter=Pan}" Margin="2" Padding="0" IsBackgroundVisible="False" HorizontalAlignment="Left" VerticalAlignment="Stretch">
                <ToolTipService.ToolTip>
                    <TextBlock Text="Pan" />
                </ToolTipService.ToolTip>
                <Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/hand-free.png" Stretch="None" />
            </telerik:RadToggleButton>
  
            <telerik:RadToggleButton IsChecked="{Binding FixedDocumentViewer.Mode, Mode=TwoWay, Converter={StaticResource ModeConverter}, ConverterParameter=TextSelection}" Margin="2" Padding="0" IsBackgroundVisible="False" HorizontalAlignment="Left" VerticalAlignment="Stretch">
                <ToolTipService.ToolTip>
                    <TextBlock Text="Text Selection" />
                </ToolTipService.ToolTip>
                <Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/text-selection.png" Stretch="None" />
</telerik:RadToggleButton>

We made sure to update the documentation on this topic and it will be uploaded next week. You can check the latest additions to the documentation in these blog posts.
 
All the best,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Seth
Top achievements
Rank 1
answered on 20 Dec 2012, 07:48 PM
Sorry for the belated reply but thank you the updated documentation fixed me up.
Tags
PDFViewer
Asked by
Seth
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Seth
Top achievements
Rank 1
Share this question
or