public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear (animated);

            var tocController = new PSPDFOutlineViewController (document, controller.Handle);
            tocController.Title = "TOC";

            var searchController = new PSPDFSearchViewController (document, IntPtr.Zero);
            searchController.Title = "Search";

            var bookmarksController = new PSPDFBookmarkViewController (document, null);
            // PSPDFViewController implements PSPDFOutlineViewControllerDelegate as a protocol.
            bookmarksController.WeakDelegate = controller;
            bookmarksController.Title = "Bookmarks";

            var annotsController = new KSAnnotationsListController(document, controller);
            annotsController.Title = "Annotations";

            this.SetViewControllers (new UIViewController[] {
                tocController,
                searchController,
                bookmarksController,
                annotsController
            }, false);
        }
 public override bool DidTapAtElement(PSPDFOutlineViewController outlineController, PSPDFOutlineElement outlineElement)
 {
     Console.WriteLine ("DidTapAtTocElement: " + outlineElement);
     return false;
 }