如何去除DocumentViewer的阴影?
如何从 DocumentViewer 控件中删除投影?
如果我使用 docViewer.ShowPageBorders = false ,文档周围的正常边框也会消失。当我设置 BorderBrush 时,边框围绕控件而不是文档。
这是我的意思的屏幕截图:
知道如何执行此操作吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过创建自己的样式来实现它,该样式覆盖内置样式(以及
ShowPageBorders="False"
):通过为您的
DocumentViewer< 使用自定义
Template
/code> 您可以进一步改变它的外观。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.