滚动到现在的位置在使用WPF Web浏览器 [英] Scroll to a postion in a Web Browser using Wpf
本文介绍了滚动到现在的位置在使用WPF Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我似乎无法在WPF中programmatcally滚动
在正常的Windows窗体我会用code以下
但该财产不存在WPF
I cannot seem to programmatcally scroll in WPF in a normal Windows Form I would use the code below but that property does not exist in WPF.
HtmlDocument doc = this.webBrowser1.Document;
doc.Body.ScrollTop = 800;
return;
是否有这样做的方法吗?
Is there an alternative to doing this?
推荐答案
不exaclty一定要寻找在code什么,但我基本上有一个WebControl的,其中显示了几篇文章的网页。
我想跳被它的标题的文章。我知道我能得到的商品名称的索引,但跳到它的问题。
Not exaclty sure what to look for in that code, but I basically have a WebControl that shows a Webpage that has several articles. I would like to jump to an article by it's title. I know I can get the index of the article name, but jumping to it is the issue.
这篇关于滚动到现在的位置在使用WPF Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文