title: Trying to put a Html string to the WebView in Xamarin
body: <p>I have a little strange problem with the WebView in Xamarin (Visual Studio 2017)</p>
  
  <p><strong>This scenario works:</strong><br>
  I am putting html content to the webview in the "OnCreate" event and the webview shows "Hello"</p>
  
  <p><strong>This scenario doesn't work:</strong><br>
  I am creating a button control in the OnCreate and assign a click event. The clickevent Do fire so this works. But "Hello2" is not put to the WebView although I use the exact same code.</p>
  
  <p>What could be the problem?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;WebView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/LocalWebView"&gt;
  &lt;/WebView&gt;
  
  
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
              SetContentView(Resource.Layout.activity_main); Android.Content.Context context = ApplicationContext;
              Android.Support.V7.Widget.Toolbar toolbar = FindViewById&lt;Android.Support.V7.Widget.Toolbar&gt;(Resource.Id.toolbar);
              SetSupportActionBar(toolbar);
  
  
              //This works and shows: "Hello"
              WebView localWebView = FindViewById&lt;WebView&gt;(Resource.Id.LocalWebView);
              localWebView.SetWebViewClient(new WebViewClient()); // stops request going to Web Browser
              localWebView.LoadData("&lt;html&gt;Hello&lt;/html&gt;", "text/html", "utf-8");
  
  
  
              Button button = new Button(context);
              button.Click += (sender, args) =&gt;
              {
                  //The click event fires but Hello2" is not put to the webview?
                  Button btn = sender as Button;
  
                  WebView localWebView2 = FindViewById&lt;WebView&gt;(Resource.Id.LocalWebView);
                  localWebView2.SetWebViewClient(new WebViewClient()); // stops request going to Web Browser
                  localWebView2.LoadData("&lt;html&gt;Hello2&lt;/html&gt;", "text/html", "utf-8");
              };
          }</code></pre>
  </div>
  </div>
  </p>