简体   繁体   中英

How to scroll to a specific position into Xamarin Forms WebView?

I'm using Xamarin Forms for displaying a huge html document. I want to open my page from the position which is stored in a database. Are there any ways? Thanks.

Maybe this will work:

MyWebView.Eval("window.scrollTo(0, 0)");

If not I would suggest using a Custom Renderer or

https://github.com/XLabs/Xamarin-Forms-Labs/wiki/HybridWebView

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM