【问题标题】:Xamarin Forms PCL how to PushAsync From iOS customRendererXamarin Forms PCL 如何从 iOS customRenderer 推送异步
【发布时间】:2016-07-25 09:39:29
【问题描述】:

我正在努力寻找解决方案 希望有人能指出正确的方向。

我需要导航到 Forms ContentPage 之类的:

Navigation.PushAsync(new ExamplePage());

然后来自我的 iOS 项目中的 CustomRenderer 类。 我怎样才能做到这一点?

为什么要这样做?

因为我为我的WebView 制作了一个CustomRenderer 我想在ShouldStartLoad 事件中将Url 重定向到我的内部Forms ContentPage

【问题讨论】:

  • 您可以将event 添加到您的CustomWebView,然后从渲染器中提升。
  • TY 那是我自己没想到的愚蠢的事情:)

标签: c# ios xamarin xamarin.ios xamarin.forms


【解决方案1】:

您可以将event 添加到您的CustomWebView,然后从渲染器中提升。

【讨论】:

    猜你喜欢
    • 2017-10-07
    • 2014-09-08
    • 2020-04-22
    • 1970-01-01
    • 2017-01-21
    • 2019-03-02
    • 1970-01-01
    • 1970-01-01
    • 2016-08-16
    相关资源
    最近更新 更多