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

Setup

* Take your example from 
from http://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted-81946798?_ga=2.73924754.1864490462.1555572654-961319033.1549560223
*Update to newest packages:
XamarinForms project
<PackageReferenceInclude="Syncfusion.Xamarin.SfPdfViewer"Version="17.1.0.41"/>
 <PackageReferenceInclude="Xamarin.Forms"Version="3.6.0.344457"/>
 UWP Project:
<PackageReferenceInclude="Syncfusion.Xamarin.SfPdfViewer">
<Version>17.1.0.41</Version>
</PackageReference>
<PackageReferenceInclude="Xamarin.Forms"Version="3.6.0.344457"/>
<PackageReferenceInclude="Microsoft.NETCore.UniversalWindowsPlatform"Version="6.2.8"/> Change Main.xaml to: <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:GettingStarted"
             x:Class="GettingStarted.MainPage"
             xmlns:syncfusion="clr-namespace:Syncfusion.SfPdfViewer.XForms;assembly=Syncfusion.SfPdfViewer.XForms">
    <Grid  Padding="20" BackgroundColor="Accent">
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="10"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="30"/>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="10"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="1" Grid.Column="1" x:Name="placeholderLeft" BackgroundColor="Gray">
            <syncfusion:SfPdfViewer x:Name="pdfViewerControl" IsVisible="True"/>
        </Grid>
       
        <StackLayout  Grid.Row="1" Grid.Column="3">
            <Button Text=">>" Clicked="ButtonRight_Clicked" />
            <Button Text="&lt;&lt;" Clicked="ButtonLeft_Clicked"/>
        </StackLayout>
        <Grid Grid.Row="1" Grid.Column="5" x:Name="placeholderRight" BackgroundColor="Yellow">
          
        </Grid>
    </Grid>
</ContentPage>

Add two callbacks to MainPage.xaml.cs

private void ButtonRight_Clicked(object sender, EventArgs e)
        {
            //placeholderRight.Content  =  pdfViewerControl;
            placeholderRight.Children.Add(pdfViewerControl);
        }
        private void ButtonLeft_Clicked(object sender, EventArgs e)
        {
            placeholderLeft.Children.Add(pdfViewerControl);
        }

Steps to reproduce:
*Start App
*type in Sy into search bar
*click search Icon
*click search next 2 times
!! click >> Button (pdfviewer will move to the right)
click search Next => App throw exception (in Debug) or disappear 
see Attached video