Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很明显,如果只有一个页面可见,但如果多个页面可见,你怎么知道用户点击了哪个页面?我查看了它的属性,并没有真正突出。即使我找到一种方法一次只显示一页,也没关系。
您可以尝试 IsMouseCaptured 属性。我在 MSDN 上找到了这个...
MSDN 上的 UIElement.IsMouseCaptured
我进行了输入命中测试并将其变成了 FixedPage。如果这是空的,显然没有点击页面。然后我浏览了 DocumentViewer 中的每个 FixedPage 并找到了匹配的页面。