title: how to display pdf in custom webview xamarin forms
body: <p>i want to display pdf in webview from url using pdfjs, but i am getting empty view. here is my code</p>
  
  <p>CustomWebView.cs</p>
  
  <pre><code> public class CustomWebView : WebView
          {
              public static readonly BindableProperty UriProperty = BindableProperty.Create(propertyName: "Uri",
                      returnType: typeof(string),
                      declaringType: typeof(CustomWebView),
                      defaultValue: default(string));
  
              public string Uri
              {
                  get { return (string)GetValue(UriProperty); }
                  set { SetValue(UriProperty, value); }
              }
          }
  </code></pre>
  
  <p>MainPage.xaml</p>
  
  <pre><code> &lt;ContentPage.Content&gt;
          &lt;local:CustomWebView Uri="http://veezo2007pkk.somee.com/api/DiagnosticDetail/RetrieveFile/1" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /&gt;
      &lt;/ContentPage.Content&gt;
  </code></pre>
  
  <p>App.Android</p>
  
  <p>CustomWebViewRenderer.cs</p>
  
  <pre><code> public class CustomWebViewRenderer : WebViewRenderer
      {
          protected override void OnElementChanged(ElementChangedEventArgs&lt;WebView&gt; e)
          {
              base.OnElementChanged(e);
  
              if (e.NewElement != null)
              {
                  var customWebView = Element as CustomWebView;
                  Control.Settings.AllowUniversalAccessFromFileURLs = true;
                  Control.LoadUrl(string.Format("file:///android_asset/pdfjs/web/viewer.html?file={0}", string.Format("file:///android_asset/Content/{0}", WebUtility.UrlEncode(customWebView.Uri))));
              }
          }
      }
  </code></pre>
  
  <p>it seems look fine, but i dont know why its not showing in webview....</p>