//Handles the click event of the bookmark button on the top toolbar private void BookmarkButton_TouchUpInside(object sender, EventArgs e) { if (bookmarkToolbar == null) { bookmarkToolbar = new BookmarkToolbar(this); } if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) { if (bookmarkToolbar.Superview == null) { AddSubview(bookmarkToolbar); } else { bookmarkToolbar.RemoveFromSuperview(); } isBookmarkPaneVisible = !isBookmarkPaneVisible; annotHelper.RemoveAllToolbars(false); pdfViewerControl.AnnotationMode = AnnotationMode.None; isAnnotationToolbarVisible = false; } else { if (bookmarkToolbar.Superview == null) { AddSubview(bookmarkToolbar); } isBookmarkPaneVisible = true; } }
internal BookmarkListAdapter(Context context, BookmarkToolbar bookmarkToolbar, float density) { this.bookmarkToolbar = bookmarkToolbar; this.context = context as Activity; this.density = density; bookmarkList = new List <CustomBookmark>(); bookmarkFont = bookmarkToolbar.bookmarkFont; }