<ContentPage.Content>
<StackLayout>
<syncfusion:SfPdfViewer x:Name="pdfViewerControl" InputFileStream="{Binding PdfDocumentStream}" Toolbar = "{StaticResource ToolbarSettings}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
</StackLayout>
</ContentPage.Content>
|
Hi Joshua,Greetings from Syncfusion.When PDFViewer is placed inside the Stacklayout, We need to set the VerticalOptions and HorizontalOptions property of the PDF Viewer control to “FillAndExpand”.Please find the code snippet below,
<ContentPage.Content><StackLayout><syncfusion:SfPdfViewer x:Name="pdfViewerControl" InputFileStream="{Binding PdfDocumentStream}" Toolbar = "{StaticResource ToolbarSettings}" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/></StackLayout></ContentPage.Content>However, once the document is loaded zoom will work only after scrolling which is a defect from our side. We are currently working on this issue and the fix for this will be included in our Essential Studio Volume 2 Main Release which will be available by Mid of July 2019.Regards,Jhansi