title: Xamarin Forms - making webview go back
body: <p>Morning all, </p>
  
  <p>I am working on a little crossplatform webview project in Xamarin.Forms. I have the webview working but I want to add in a toolbar which has a Back and Forward buttons.</p>
  
  <p>I tried a number of different ways but nothing seems to be working particularly well. I tried to implement this feature by following this guys post <a href="https://www.syntaxismyui.com/xamarin-forms-navigation-bar-buttons-recipe/" rel="noreferrer">Navigation Toolbar</a> </p>
  
  <p>I will attach my code below and if someone could give me a hand with this or a solution that would be great!</p>
  
  <p>And if this question has already been answered previously by another user then I apologize.</p>
  
  <p><strong>App.cs</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  using Xamarin.Forms;
  
  namespace DisplayWebPage
  {
      public class App : Application
      {
          public App()
          {
              // The root page of your application
              MainPage = new WebPage();
          }
  
          protected override void OnStart()
          {
              // Handle when your app starts
          }
  
          protected override void OnSleep()
          {
              // Handle when your app sleeps
          }
  
          protected override void OnResume()
          {
              // Handle when your app resumes
          }
      }
  }
  </code></pre>
  
  <p><strong>WebPage.cs</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Reflection.Emit;
  using System.Text;
  
  using Xamarin.Forms;
  
  namespace DisplayWebPage
  {
      public class WebPage : ContentPage
      {
          public WebPage()
          {
              Content = new StackLayout
              {
                  Children = {
                      new WebView
                      {
                          Source = "http://www.google.com"
                      }
                  }
              };
          }
      }
  }
  </code></pre>
  
  <p>Looking forward to getting an answer to this as ive been stuck on it for quite awhile now.</p>
  
  <p>Kind regards</p>