测试环境:VS2010
代码:
- FileStream fs = new FileStream(@"E:\学习\Silverlight学习\SilverlightApplication1\Bookmarks.pdf", FileMode.Open);
- this.c1PdfViewer1.LoadDocument(fs);
- c1PdfViewer1.RequestNavigate += (s, e) =>
- {
- if (HtmlPage.IsEnabled)
- {
- try
- {
- // HtmlPage.PopupWindow doesn't work for email addresses.
- // HtmlPage.Window.Navigate seems to work both for webpages and emails.
- HtmlPage.Window.Navigate(e.Uri, "_blank");
- }
- catch { }
- }
- };
复制代码
结果:文件没有加载出来,请教原因! |
|