devexpress中的PdfViewerControl在加载PDF文件时显示白色背景



加载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;

我自己买的

  Application.Current.Dispatcher.BeginInvoke(
  DispatcherPriority.Background,
  new Action(() => { testView.DocumentSource = "D:\test.pdf"; testView.ZoomMode = DevExpress.Xpf.DocumentViewer.ZoomMode.FitToWidth; }));

最新更新