WPF WebBrowser最近的页面 [英] WPF WebBrowser Recent Pages

查看:206
本文介绍了WPF WebBrowser最近的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有一种方法来访问在WPF WebBrowser中访问的最近的页面。它明显地跟踪页面,如Go [Forward / Back]功能所证明的。我计划制作一个数据库来跟踪它,但我不想做额外的工作,如果这是无意义的话。我猜这些细节是故意隐藏给用户。

Just wondering if there is a way to access the recent pages visited in the WPF WebBrowser. It obviously keeps track of the pages, as evidenced by by the Go[Forward/Back] functions. I am planning on making a database to keep track of it, but I didn't want to do extra work if it was pointless to do so. I am guessing those details are purposely hidden to the user.

推荐答案

不,我不认为这是可能的,只有GoForward / GoBack方法使用。 WebBrowser控件中的历史记录似乎与Windows绑定(因此,在WebBrowser中打开一个URL将其添加到IE历史记录中,反之亦然),我想这就是为什么他们限制访问它的原因。写自己的方式来跟踪可能有点重复的努力,但这是在这种情况下的方式。

No I don't think that's possible, there's just the GoForward/GoBack methods to use. The history in the WebBrowser control seems to be tied into Windows (so opening a URL in your WebBrowser adds it to IE history and vice-versa), I guess that's why they've restricted access to it. Writing your own way to keep track may be a bit of duplicated effort, but it's the way to go in this case.

这篇关于WPF WebBrowser最近的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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