We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Loading PDF using binding to InputFileStream not working on Android

Thread ID:





130172 Apr 26,2017 12:31 PM UTC Apr 28,2017 12:34 PM UTC Xamarin.Forms 2
Tags: PdfViewer
Simon Edwards
Asked On April 26, 2017 12:31 PM UTC

We are using MVVM pattern in XF app, and attempting to bind a Stream property in the ViewModel to the Bindable InputFileStream property on the SfPdfViewer control.

This works great on iOS, but does not seem to work on Android - the PDF document is not shown.

Does it only work if LoadDocument() is called?

(files attached for reference only, this is not a working (failing) example).

Attachment: Files_a0840cb4.zip

Simon Edwards
Replied On April 26, 2017 01:19 PM UTC

I can confirm that wrapping the SfPdfViewer control in a custom xaml view, implementing a Bindable Stream property, and calling LoadDocument() on underlying SfPdfViewer in the PropertyChanged event does work a treat.

Looks like there is a bug in SfPdfViewer in which it doesn't respond to PropertyChange events on the InputFileStream property.

(files attached for ref only - not a working example)

Attachment: MyWorkAround_378cd301.zip

Sathish Sivakumar [Syncfusion]
Replied On April 28, 2017 12:34 PM UTC

Hi Simon,

Thank you for using Syncfusion Products.

We have created a new separate incident under your account for your query. So we request you to kindly login to your Syncfusion account from the below link to know more details about the incident:


Please let us know if you need further assistance.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon