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

How to make RadToolbar of RadPdfView still visible even if it is zoomed

2 Answers 94 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
ems
Top achievements
Rank 1
ems asked on 30 Jun 2014, 08:55 AM
Hi Telerik,

Is it possible that while PdfViewer is zoomed, the user can still see the radtoolbar hanging over the top. 

My code below - the radtoolbar is detached from the radpdfviewer when viewed in UI. When zooming in PdfViewer, the toolbar cannot be seen anymore. I hope there is a way.

<telerik2:RadToolBar DataContext="{Binding ElementName=pdfViewer, Path=Commands}" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="20,5,5,5" OverflowButtonVisibility="Collapsed" ><br>                    <telerik2:RadButton Content="Download" Click="Download_OnClick"/><br>                    <telerik2:RadButton Content="Close" Click="CancelButton_Click"/><br>                </telerik2:RadToolBar><br><br>                <telerik:RadPdfViewer x:Name="pdfViewer" DocumentSource="{Binding DocumentStream}" Grid.Row="0" Grid.Column="1"><br>                    <br>                </telerik:RadPdfViewer>

Thank you.

Regards,
Em

2 Answers, 1 is accepted

Sort by
0
ems
Top achievements
Rank 1
answered on 30 Jun 2014, 08:59 AM
When browser is zoomed, the radtoolbar cannot be seen anymore..
0
Kammen
Telerik team
answered on 02 Jul 2014, 08:34 AM
Hi Em,

Can you give us more details about what you are trying to do?

We have tested RadToolBar and RadPdfViewer in browser that is zoomed to 400% and the toolbar is on the top as expected. I am attaching you screenshot that shows the result. The code looks like this:

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition />
    </Grid.RowDefinitions>
    <telerik:RadToolBar DataContext="{Binding ElementName=viewer, Path=Commands}">
        <controls:RadButton Command="{Binding OpenPdfDocumentCommand}" Content="Open" />
    </telerik:RadToolBar>
    <telerik:RadPdfViewer Grid.Row="1" x:Name="viewer" />
</Grid>


Note that it is important to use Grid with rows as layout root otherwise the layout may be different. 

We are looking forward to your reply.

Regards,
Kammen
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
PDFViewer
Asked by
ems
Top achievements
Rank 1
Answers by
ems
Top achievements
Rank 1
Kammen
Telerik team
Share this question
or