Hi,
I'have a xamarin form with a sfCombobox showing a list of pdf's. When one is selected a pdf is loaded. Everything correct till here.
The problem comes when I select another pdf. In that moment I unload the pdf and I try to load the new one. In that moment I get the error:
Java.Lang.UnsupportedOperationException
Mensaje = removeAllViews() is not supported in AdapterView
This is the xaml code:
<syncfusion:SfPdfViewer Toolbar = "{StaticResource ToolbarSettings}" VerticalOptions="FillAndExpand"
AnnotationMode="None" BookmarkNavigationEnabled="False" x:Name="pdfViewerControl"
/>
the c# code:
ServiceWrapper sw = new ServiceWrapper();
string pdf = await sw.GetPdfForm(AuthStore.Token, PageModel.SelectedItem.urlPart);
if (!String.IsNullOrEmpty(pdf))
{
if (DocumentLoaded)
{
pdfViewerControl.Unload(); //here I get the error
}
pdfViewerControl.LoadDocument(new MemoryStream(Convert.FromBase64String(pdf)));
DocumentLoaded = true;
}
I'm using the 18.4.0.41 version (but I tried previous ones with same results)
Xamarin forms version: 5.0.0.1931
Thank you very much!