Change AllowsBackForwardNavigationGestures on the fly #20076
-
I have
However, in some specific cases, I need to disable the gesture, and then reenable, but I can't seem to access the property to change it. Any idea how it can be changed on the fly would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the solution if anyone is interested in changing the WebView's properties. For other platforms you can just cast the #if IOS
var webView = _blazorWebView.Handler.PlatformView as WebKit.WKWebView;
webView.AllowsBackForwardNavigationGestures = value;
#endif |
Beta Was this translation helpful? Give feedback.
Found the solution if anyone is interested in changing the WebView's properties. For other platforms you can just cast the
PlatformView
to its corresponding WebView