0

加载 PDF 文件时,控件内会显示白色背景。如何去除白色背景。

这是我在 xaml 中使用 pdf 查看器控件的方式

<dxpdf:PdfViewerControl AsyncDocumentLoad="True" x:Name="testView" ShowOpenFileOnStartScreen="False" ShowStartScreen="False"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  CommandBarStyle="None"/>

在后面的代码中

 testView.DocumentSource = "D:\\test.pdf";
            testView.ZoomMode = DevExpress.Xpf.DocumentViewer.ZoomMode.FitToWidth;
4

1 回答 1

0

我自己弄的

  Application.Current.Dispatcher.BeginInvoke(
  DispatcherPriority.Background,
  new Action(() => { testView.DocumentSource = "D:\\test.pdf"; testView.ZoomMode = DevExpress.Xpf.DocumentViewer.ZoomMode.FitToWidth; }));
于 2015-09-11T10:30:27.657 回答