Forum Xamarin.Forms

Webview not scrolling inside of Frame

The following code prevents the WebView from scrolling a Xamarin forms application running in UWP

<ContentPage.Content>
    <Frame >
        <Grid >
            <WebView Source="I can not post link put your address here" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
        </Grid>
    </Frame>
</ContentPage.Content>

Where code without the frame works fine.

<ContentPage.Content>
        <Grid >
            <WebView Source="can not post links put your web address here" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
        </Grid>

</ContentPage.Content>

Any ideas on how to resolve or work around this without removing the frame? Is there something I am missing or is this a bug?

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai
    edited November 2018

    Try to add an outline color to this frame to enable this webView's interaction:

    <ContentPage.Content>
        <Frame OutlineColor="White">
            <Grid >
                <WebView Source="https://www.microsoft.com" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
            </Grid>
        </Frame>
    </ContentPage.Content>
    
  • giftcardbalgiftcardbal Member

    can confirm OutlineColor="White" worked in my case. thx!

Sign In or Register to comment.