看來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
我有同樣的問題,你有沒有得到這個工作? –