看来DocumentViewer控件可能不像Windows 8。只需将它放在窗体上(使用所有的默认设置,不设置数据或任何其他设置,它甚至还没有完成InitializeComponent)I “M收到此错误:检测DocumentViewer WPF控件无法加载
The assembly with display name 'PresentationUI.Aero2' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'PresentationUI.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
BindingFailure如果我摆脱控制的,这个问题就会消失。奇怪的是,设计师完全没有问题。
我试着在Avent2的名字里添加一个对唯一的框架程序集的引用,它什么也没做。在谷歌的任何地方都没有提到这个错误。我正在尝试整合一个documentpaginator,并且我不得不使用pdf打印机来解决这个问题,但最终我需要一个工作浏览器。
我越来越: 无法加载文件或程序集 'PresentationUI.Aero2,版本= 4.0.0.0,文化=中性公钥= 31bf3856ad364e35' 或它的一个依赖。该系统找不到指定的文件。当我构造一个FlowDocumentScrollViewer。你有没有解决你的问题呢? –
不,它看起来像是同样的问题。我最终只是用普通的控件显示它,并将它打印出来。 – Patrick
我有同样的问题,你有没有得到这个工作? –