本文整理汇总了C#中WebView.GoForward方法的典型用法代码示例。如果您正苦于以下问题:C# WebView.GoForward方法的具体用法?C# WebView.GoForward怎么用?C# WebView.GoForward使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebView
的用法示例。
在下文中一共展示了WebView.GoForward方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnCreate
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.WebViewBrowser);
web = FindViewById<WebView>(Resource.Id.Web);
web.Settings.JavaScriptEnabled = true;
web.LoadUrl("http://xamarin.com/");
web.SetWebViewClient(new MonkeyWebViewClient());
// allow zooming/panning
web.Settings.BuiltInZoomControls = true;
web.Settings.SetSupportZoom(true);
// loading with the page zoomed-out, so you can see the whole thing (like the default behaviour of the real browser)
web.Settings.LoadWithOverviewMode = true;
web.Settings.UseWideViewPort = true;
// scrollbar stuff
web.ScrollBarStyle = ScrollbarStyles.OutsideOverlay; // so there's no 'white line'
web.ScrollbarFadingEnabled = false;
BackButton = FindViewById<Button>(Resource.Id.BackButton);
ForwardButton = FindViewById<Button>(Resource.Id.ForwardButton);
GoButton = FindViewById<Button>(Resource.Id.GoButton);
StopButton = FindViewById<Button>(Resource.Id.StopButton);
UrlText = FindViewById<EditText>(Resource.Id.UrlText);
BackButton.Click += (s, e) => {
web.GoBack();
};
ForwardButton.Click += (s, e) => {
web.GoForward();
};
GoButton.Click += (s, e) => {
web.LoadUrl(UrlText.Text);
};
StopButton.Click += (s, e) => {
web.StopLoading();
};
}