How can I remove the drop-shadow from the DocumentViewer control?
If I use docViewer.ShowPageBorders = false
the normal border around the document is gone too. When I set a BorderBrush the border goes around the control and not the document.
Here is a screenshot of what I mean:
Any idea how I can do this?
I achieved it by creating my own style which overrides the built in style (along with
ShowPageBorders="False"
):By using a custom
Template
for yourDocumentmentViewer
you can change how it all looks even more.