Joseph Katzman
Joseph Katzman

Reputation: 2083

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.

Upvotes: 0

Views: 1202

Answers (1)

Mario Galván
Mario Galván

Reputation: 4032

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.

Upvotes: 2

Related Questions