title: Xamarin WebViewClient onLoadResource/onPageFinished
body: <p>Hi im trying to create a WebView application, and i want to create a waiting dialog until the page is loaded.</p>
  
  <p>However i have tried different solutions but i cannot figure out why this is not working when it is working for others on the internet. it fails in Xamarin saying that "}" is missing after this line webview.SetWebViewClient(new WebViewClient() {, even that im sure that i remembered the }); at then end.</p>
  
  <p>it seems that it cannot create something inside the webview.SetWebViewClient().</p>
  
  <pre><code>    webview.SetWebViewClient(new WebViewClient() {
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
              view.loadUrl(url);
              return true;
          }
  
          public void onLoadResource(WebView view, String url) {
              //code to show dialog
          }
  
          public void onPageFinished(WebView view, String url) {
              //code to dismiss dialog
          }
  
      });
  </code></pre>