-
Notifications
You must be signed in to change notification settings - Fork 1
916590 - How to use SfPdfViewer inside SfTabView? #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,44 @@ | |||
| using Syncfusion.Maui.PdfViewer; | |||
|
|
|||
| namespace MultiTabbedPDFViewer | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add 3 tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added 3 tabs sir
| /// <summary> | ||
| /// The PDF document stream that is loaded into the instance of the PDF viewer. | ||
| /// </summary> | ||
| public Stream? PDFDocumentSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of multiple properties of document source, use one property as array of document source
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed it sir
| public partial class MainPage : ContentPage | ||
| { | ||
| // Create three instances of SfPdfViewer for displaying PDF documents | ||
| SfPdfViewer pdfViewer = new SfPdfViewer(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start with pdfViewer1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed it anna
| PDFDocuments = new ObservableCollection<Stream>(); | ||
|
|
||
| //Accessing the PDF document that is added as embedded resource as stream. | ||
| Stream? documentSource = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("MultiTabbedPDFViewer.Assets.PDF_Succinctly.pdf"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start with documentSource1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed it anna
This sample shows how to use the .NET MAUI PdfViewer inside the SfTabView.