Welcome to the Xamarin.Android feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Android, 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

Hello, I'm developing an Android app using Syncfusion.SfPdfViewer.Android.


I found that adding FreeTextAnnotation makes null reference exception.

It worked well before, but not now.


Below is my code that makes null reference exception and I attached sample project.


        private void BtnTextAnnot_Click(object sender, EventArgs e)

        {

            FreeTextAnnotationSettings TextSetting = new FreeTextAnnotationSettings();

            TextSetting.IsFreeTextDialogEnabled = true;

            TextSetting.TextColor = Android.Graphics.Color.Black;

            TextSetting.TextSize = 20;

            Viewer.AnnotationSettings.FreeText = TextSetting;

            Viewer.AnnotationMode = AnnotationMode.FreeText;

           // text frament is shown well, but pressing "OK" make exception

           // ...

        }


Please review and update.

Thank you.