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;
            }
        }
Ejemplo n.º 2
0
 private void backButton_Tapped(object sender, BackRequestedEventArgs e)
 {
     if (WebView1.CanGoBack)
     {
         WebView1.GoBack();
     }
 }
Ejemplo n.º 3
0
 private void FrameBackBtn_Click(object sender, RoutedEventArgs e)
 {
     if (TheAPPFrame.CanGoBack)
     {
         TheAPPFrame.GoBack();
         WebView1.GoBack();
     }
 }
Ejemplo n.º 4
0
 private void BrowseBack_OnExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     WebView1?.GoBack();
 }