Issue
I've got this Xamarin Forms page:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TestApp1"
x:Class="TestApp1.MainPage">
<ContentPage.Content>
<StackLayout Orientation="Vertical">
<WebView Source="http://www.google.de" HeightRequest="3000" WidthRequest="100"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
When I open my app, enter anything in the google prompt, I can't scroll on the results page. How do I enable this?
When I google for "xamarin webview enable scrolling" I only find information about disabling it...
Solution
Create your own renderer and override this method as follows:
public override bool DispatchTouchEvent(MotionEvent e)
{
Parent.RequestDisallowInterceptTouchEvent(true);
return base.DispatchTouchEvent(e);
}
Please find details in this link
Answered By - Ashi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.