无法使超链接在MS DocumentViewer示例中工作 [英] Cannot get hyperlinks to work in MS DocumentViewer example

查看:127
本文介绍了无法使超链接在MS DocumentViewer示例中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在另一个线程中发布了此问题,但已将其标记为已回答,不幸的是,该解决方案对我不起作用.很抱歉,这似乎很棘手,但是我正在努力完成最后期限,因此我真的需要一些有关此问题的帮助.尽管遵循这些板上给出的解决方案,但我仍然无法在DocumentViewer中使用超链接.

原始线程在这里:

http://forums.microsoft.com/MSDN /ShowPost.aspx?PostID=2771054&SiteID=1

我的帖子如下:应用程序,但事件未触发.当我将鼠标悬停在文档查看器上的链接上时,该图标不会变为手形,也没有迹象表明我可以单击它作为链接.我非常仔细地查看了它所显示的实际FixedDocument,并且肯定可以将其存储为链接. DocumentViewer还会显示带有蓝色下划线的链接,一切都还不错.

我已经用这种方法将头撞墙了一段时间了,但是我无法触发该事件.<

我已经尝试过使用RichTextEditor做类似的事情,并且效果很好.

我需要做一些特殊的事情来在DocumentViewer中启用链接吗?我也曾用http://msdn2.microsoft.com/en-us/library/aa972174.aspx进行过尝试,但是它不起作用.行为与我的代码相同.

我从此程序包(http://www.microsoft.com/whdc/XPS/XpsSamples.mspx)中打开了XPS文档,其中包含一些链接.他们都不会触发导航请求"事件.我打开的文档是WPF_LinkDocSeq.xps

先谢谢了,

James

I've posted this question in another thread, but it's been marked as answered, and unfortunately the solution doesn't work for me. I'm sorry if this seems pushy, but I'm working to a deadline and I really need some help with this issue. I am unable to get hyperlinks to work in the DocumentViewer, despite following the solution give on these boards.

The original thread is here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2771054&SiteID=1

My post is as follows:

I've tried to do this in my application, but the event isn't firing. When I mouse-over a link on the document viewer, the icon doesn't change to a hand, and gives no indication I can click on it as a link. I've looked very carfully at the actual FixedDocument that it's displaying, and it most certainly is stored as a link. The DocumentViewer also displays the link with a blue underline, it all looks okay.

I've been bashing my head against a wall with this for a while now, but I just cannot get the event to fire.

I've attempted a similar thing with the RichTextEditor, and that works just fine.

Do I need to do anything special to enable links in a DocumentViewer?

I've tried it with http://msdn2.microsoft.com/en-us/library/aa972174.aspx also, but it doesn't work. Behaves much the same as in my code.

I opened a XPS document from this package (http://www.microsoft.com/whdc/XPS/XpsSamples.mspx) which contains a few links. None of them will fire the Navigation Requested event. The document I opened was WPF_LinkDocSeq.xps

Thanks in advance,

James

推荐答案

没人有什么主意吗?
No one has any ideas?


这篇关于无法使超链接在MS DocumentViewer示例中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆