Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi 

I have to come back to this problem, signaled with this ticket

 

Now I am able to reproduce it.

Occurs only on UWP, iOS and Android works as expected.


Please run the attached solution that I made from your sample.

  1. click on the "Go to pdf page" button
  2. press the back button at the top left


The application crashes with the exception: 
System.NullReferenceException


The stack trace says:

   in Syncfusion.SfPdfViewer.XForms.UWP.SfPdfViewerControl.ScrollToPage (Int32 pageNumber)

   in Syncfusion.SfPdfViewer.XForms.UWP.PdfViewerDependencyServices.ScrolltoPage (Object nativeObject, Int32 pageNumber)

   in Syncfusion.SfPdfViewer.XForms.SfPdfViewer.OnPageNumberChanged (BindableObject bindable, Object oldValue, Object newValue)

   in Xamarin.Forms.BindableObject.SetValueActual (BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)

   in Xamarin.Forms.BindableObject.SetValueCore (BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)

   in Xamarin.Forms.BindableObject.SetValue (BindableProperty property, Object value, Boolean fromStyle, Boolean checkAccess)

   in Syncfusion.SfPdfViewer.XForms.SfPdfViewer.set_PageNumber (Int32 value)

   in Syncfusion.SfPdfViewer.XForms.SfPdfViewer.Unload ()

   in GettingStarted.PdfPage.OnDisappearing () in C: \ Users \ info \ Downloads \ GettingStarted-1029745208 \ GettingStarted \ GettingStarted \ PdfPage.xaml.cs: line 51


Thanks,
Walter