private void HandleClickedEvent(object sender, EventArgs args)
        {
            switch (sender)
            {
            case Button bt:
                switch (bt)
                {
                case var b when b.Equals(ButtonEnterPage):
                    WebView1.Source = EntryEndereco.Text;

                    break;

                case var b when b.Equals(ButtonBack):
                    if (WebView1.CanGoBack)
                    {
                        WebView1.GoBack();
                    }
                    break;

                case var b when b.Equals(ButtonNext):
                    if (WebView1.CanGoForward)
                    {
                        WebView1.GoForward();
                    }
                    break;
                }
                break;

            default:
                break;
            }
        }
示例#2
0
 private void BrowseForward_OnExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     WebView1?.GoForward();
 }