Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 924
SurenSaluka Avatar asked Oct 21 '25 04:10

SurenSaluka


1 Answers

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.

like image 159
Robson Avatar answered Oct 23 '25 04:10

Robson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!