Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Webview not filling the screen in Xamarin Forms...why is there a gap at the top?

$
0
0

When I use a webview, it has gaps at the top and bottom, or if orientated horizontally it has gaps at the side. How do I make the webview fill the entire screen.

You can see in the screenshot the blue area is the background color of the content. Why doesn't the webview start at the top?

    <?xml version="1.0" encoding="UTF-8"?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
                 x:Class="WorkingWithWebview.MyPage" >
        <ContentPage.Content>
            <WebView VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" 
                     Source="https://www.google.com" WidthRequest="1000" HeightRequest="1000">

            </WebView>
        </ContentPage.Content>
    </ContentPage>


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>