2016-12-15 189 views

回答

-1

如果您使用Xamarin.Forms會是這個樣子

<?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="WebViewDemo.LoadingDemo" Title="Loading Demo"> 
    <ContentPage.Content> 
    <StackLayout> 
     <WebView x:Name="Browser" 
     VerticalOptions = LayoutOptions.FillAndExpand , 
     HorizontalOptions = LayoutOptions.FillAndExpand, 
    </StackLayout> 
    </ContentPage.Content> 
</ContentPage> 

這應填寫頁面,並不會影響捏和縮放。

+0

謝謝,但我正在尋找的是一種WebView適合正在加載到WebView的頁面的方式。現在,我必須在屏幕上平移以查看整個頁面的加載情況。 – jbassking10

+0

哦。我沒有讀到你的問題。你有沒有嘗試像這裏推薦的cusotom渲染器? https://forums.xamarin.com/discussion/18113/webview-zoom – xerotolerant

+0

不,我希望現在有一種新的方式,但我猜不是。看起來這就是我將要做的。 謝謝。 – jbassking10