- Home
- Forum
- Xamarin.Forms
- Change bgcolor grey into white on pdf viewer
Change bgcolor grey into white on pdf viewer
Hi,


how do I change the top and bottom of pdfviewer bg color? please the image below with circle in red.
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
MK
Muralitharan Karikalan
Syncfusion Team
May 3, 2021 01:51 PM UTC
Hi Kok,
Greetings from Syncfusion support,
Currently we are analyzing ways to change the background color of the PdfViewer. We will update you the further details on May 05, 2021.
Regards,
Muralitharan K
MK
Muralitharan Karikalan
Syncfusion Team
May 5, 2021 07:32 AM UTC
Hi Kok,
We can customize the background color of pdfviewer SfPdfViewerBackgroundColor key.
Please find the code snippet below,
|
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:syncCore="clr-namespace:Syncfusion.XForms.Themes;assembly=Syncfusion.Core.XForms"
x:Class="GettingStarted.App">
<Application.Resources>
<syncCore:SyncfusionThemeDictionary>
<syncCore:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfPdfViewerTheme">CommonTheme</x:String>
<Color x:Key="SfPdfViewerBackgroundColor">#2A2A2A</Color>
</ResourceDictionary>
</syncCore:SyncfusionThemeDictionary.MergedDictionaries>
</syncCore:SyncfusionThemeDictionary>
</Application.Resources>
</Application> |
Please find the simple sample for your reference,
And we can also customize the color of other PdfViewer items. Please find the UG link for the same below,
Regards,
Muralitharan K
Marked as answer
AA
Anitha Azhagesan
Syncfusion Team
May 5, 2021 08:39 AM UTC
From: Kok Sang <[email protected]>
Sent: Wednesday, May 5, 2021 4:06 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion support community forum 165022, Change bgcolor grey into white on pdf viewer, has been updated.
Sent: Wednesday, May 5, 2021 4:06 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion support community forum 165022, Change bgcolor grey into white on pdf viewer, has been updated.
Hi Mura,
Thank you for your feedback and it’s worked.
Cheers,
KS
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
KS Kok Sang
- Apr 30, 2021 07:26 AM UTC
- May 5, 2021 08:39 AM UTC