Esempio n. 1
0
 internal BookmarkToolbar(PDFViewerCustomToolbar_Tablet sampleView)
 {
     parentGrid          = sampleView.parentGrid;
     pdfViewer           = sampleView.pdfViewer;
     listViewItemsSource = sampleView.listViewItemsSource;
     CreateBookmarkToolbar();
 }
Esempio n. 2
0
 public App()
 {
     InitializeComponent();
     if (Device.Idiom == TargetIdiom.Phone)
     {
         MainPage = new PDFViewerCustomToolbar_Phone();
     }
     else if (Device.Idiom == TargetIdiom.Tablet)
     {
         MainPage = new PDFViewerCustomToolbar_Tablet();
     }
     else if (Device.Idiom == TargetIdiom.Desktop)
     {
         MainPage = new PDFViewerCustomToolbar_Desktop();
     }
 }
        public PDFViewerCustomToolbar()
        {
            InitializeComponent();

            if (Device.Idiom == TargetIdiom.Phone)
            {
                Content = new PDFViewerCustomToolbar_Phone();
            }
            else if (Device.Idiom == TargetIdiom.Tablet)
            {
                Content = new PDFViewerCustomToolbar_Tablet();
            }
            else if (Device.Idiom == TargetIdiom.Desktop)
            {
                Content = new PDFViewerCustomToolbar_Desktop();
            }

            m_isPageSwitched = true;
        }