Page thumbnails grid

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

In Xamarin.Android

Using page thumbnails grid in Xamarin.Android is identical to using ThumbnailsViewFragment in Android. See tutorial here.

For example, the equivalent of the example provided in the Android guide will be:

var thumbDialog = ThumbnailsViewFragment.NewInstance().SetPdfViewCtrl(mPdfViewCtrl);
thumbDialog.ExportThumbnails += (sender, e) =>
{
    Console.WriteLine("ExportThumbnails");
};
thumbDialog.ThumbnailsViewDialogDismiss += (sender, e) =>
{
    Console.WriteLine("ThumbnailsViewDialogDismiss");
};
thumbDialog.SetStyle((int)DialogFragmentStyle.NoTitle, Resource.Style.CustomAppTheme);
thumbDialog.Show(this.SupportFragmentManager, "thumbnails_dialog");

In Xamarin.iOS

Using page thumbnails grid in Xamarin.iOS is identical to using ThumbnailsViewController in iOS. See tutorial here.

For example, the equivalent of the example provided in the iOS guide will be:

var thumbnailsViewController = new pdftron.PDF.Controls.ThumbnailsViewController(mPdfViewCtrl);
var navController = new UINavigationController(thumbnailsViewController);
this.PresentViewController(navController, true, null);

Populate with thumbnail images:

mPdfViewCtrl.GotThumbAsync += (sender, e) =>
{
    if (e.Image == null)
    {
        return;
    }
    if (this.thumbnailsViewController != null && this.thumbnailsViewController.PresentingViewController != null)
    {
        this.thumbnailsViewController.SetThumbnail(e.Image, e.Page_num);
    }
};