Is it possible to change the background of the pdfviewer?
Thanks
Henrik
1 Answer, 1 is accepted
0
Accepted
Todor
Telerik team
answered on 21 May 2013, 08:37 AM
Hi Henrik,
First of all, I want to thank you for your interest in RadPdfViewer.
Now straight to the question - in case you are using normal assemblies (with XAML included), you can define the below style in an appropriate place in the XAML part of your application:
Here, "pdfViewerUI" is a prefix for the following namespace: "clr-namespace:Telerik.Windows.Documents.UI;assembly=Telerik.Windows.Controls.FixedDocumentViewers".
In case you are using NoXAML binaries, or with other words - you are using implicit styles, you can edit directly the RadPdfViewer XAML part. The style you need to edit is "FixedDocumentPagesPresenterStyle".
In case you're using implicit styles, but you are merging the RadPdfViewer style files from a theme assembly and you cannot edit directly its XAML, you can base the style which I mentioned a few lines above, on "FixedDocumentPagesPresenterStyle" style. This means, that the result should be like this: