-
Notifications
You must be signed in to change notification settings - Fork 1
896838 - Publish a GitHub sample for theming the PDF Viewer using theme keys #54
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
Conversation
PDFViewerThemes/App.xaml
Outdated
@@ -0,0 +1,457 @@ | |||
<?xml version = "1.0" encoding = "UTF-8" ?> |
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.
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 attached only "PDF_Succinctly" PDF and removed the other PDFs
PDFViewerThemes/App.xaml
Outdated
@@ -0,0 +1,457 @@ | |||
<?xml version = "1.0" encoding = "UTF-8" ?> |
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.
bring the sample inside styles folder
https://github.com/SyncfusionExamples/maui-pdf-viewer-examples/tree/896838/Styles

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 the sample inside the Styles folder
PDFViewerThemes/MainPage.xaml.cs
Outdated
{ | ||
InitializeComponent(); | ||
} | ||
|
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.
avoid unwanted new lines
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 removed the unwanted lines
|
||
namespace PDFViewerThemes | ||
{ | ||
class PdfViewerViewModel : INotifyPropertyChanged |
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.
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.
{ | ||
class PdfViewerViewModel : INotifyPropertyChanged | ||
{ | ||
private Stream? pdfDocumentStream; |
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.
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.
2. Syncfusion.Maui.PdfViewer NuGet package. | ||
|
||
## Steps to Apply Themes | ||
|
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 mention UG link for themes in the step
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 the UG link for themes
Created a sample project that demonstrates how to apply themes to the PDF Viewer using theme keys. The sample includes updates for contrast themes where the hover and pressed states of buttons and list views are set to aquatic colors.