Some test text!

Outline list

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

linkIn Xamarin.Android

Using outline list in Xamarin.Android is identical to using OutlineDialogFragment in Android. See tutorial here.

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

var outlineDialog = OutlineDialogFragment.NewInstance().SetPdfViewCtrl(mPdfViewCtrl);
outlineDialog.SetStyle((int)DialogFragmentStyle.NoTitle, Resource.Style.CustomAppTheme);
outlineDialog.Show(this.SupportFragmentManager, "outline_list_dialog");
outlineDialog.OutlineClicked += (sender, e) =>
{
    outlineDialog.Dismiss();
};

linkIn Xamarin.iOS

Using outline list in Xamarin.iOS is identical to using OutlineViewController in iOS. See tutorial here.

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

OutlineViewController outlineViewController = new pdftron.PDF.Controls.OutlineViewController (mPdfViewCtrl);
outlineViewController.OutlineViewControllerOutlineSelected += (sender, e) => {
  // perform custom action
    this.DismissViewController (true, null);
};
outlineViewController.OutlineViewControllerDidCancel += (object sender, EventArgs e) => {
  this.DismissViewController (true, null);
};

var navBrowseBookmarks = new UINavigationController (outlineViewController);
this.PresentViewController (navBrowseBookmarks, true, null);