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

3 posts, 0 answers
  1. ems
    ems avatar
    3 posts
    Member since:
    Apr 2012

    Posted 30 Jun 2014 Link to this post

    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.

  2. ems
    ems avatar
    3 posts
    Member since:
    Apr 2012

    Posted 30 Jun 2014 Link to this post

    When browser is zoomed, the radtoolbar cannot be seen anymore..
  3. Kammen
    Kammen avatar
    313 posts

    Posted 02 Jul 2014 Link to this post

    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:

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

    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.

    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.
Back to Top