uwpwinrt-xamluwp-xamlwindows-10-universalpdftron

UWP PDFTron pdf viewer next previous button modification


In PDFTron there is a next and previous buttons appear in the document viewer. (UWP app). I have a requirement to place these buttons to the bottom of the screen and also scale it a bit. Does anyone have any idea how to do that? (It looks like the buttons appear from the OS and not from the app)

<Border x:Name="PDFViewCtrlBorder">
     <Grid>
         <Border Child="{Binding PDFViewCtrl}" />
     </Grid>
</Border>

enter image description here


Solution

  • Those buttons are part of the internal FlipView control inside the PDFViewCtrl.

    There is no option to modify the style but you can hide those buttons and create your own custom button controls on top (overlay) of the PDFViewCtrl.

    To hide the FlipView buttons you can call

    PDFViewCtrl.PreviousAndNextButtonVisibility = Visibility.Collapsed;

    Also, make sure to update to the latest PDFTron's UWP SDK version to access the latest APIs.