【问题标题】:How to scroll to a specific position into Xamarin Forms WebView?如何滚动到 Xamarin Forms WebView 中的特定位置?
【发布时间】:2017-04-17 13:12:58
【问题描述】:

我正在使用 Xamarin Forms 来显示一个巨大的 html 文档。我想从存储在数据库中的位置打开我的页面。有什么办法吗?谢谢。

【问题讨论】:

    标签: c# xamarin webview xamarin.forms


    【解决方案1】:

    也许这会起作用:

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

    如果不是,我建议使用自定义渲染器或

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

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-01
      • 2019-01-25
      • 2021-10-10
      • 2017-07-07
      • 1970-01-01
      • 2012-08-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多