Error when trying to reference bookmarkDlg in our project


I am using Xamarin.Android.

We get an error stating that the SupportFragmentManager cannot be resolved and that is because the renderer does not implement the fragmentactivity.

BookmarkDlg bookmarkDlg = new BookmarkDlg(pdfViewCtrl.Doc);
bookmarkDlg.onBookmarkSelected += bookmarkDlg_onBookmarkSelected;

bookmarkDlg.Show(view.SupportFragmentManager, “bookmarks”);


You need to do one of the following to correct your project.

  1. change your Activity’s base type to “FormsAppCompatActivity” (please note only appcompat version of the activity has SupportFragmentManager see:

  2. use “FragmentManager” property instead.