private WebView InitializeWebView()
        {
            var webView = new WebView(WebViewExecutionMode.SameThread)
            {
                DefaultBackgroundColor = Colors.Transparent
            };

            webView.DOMContentLoaded    += WebViewContentLoaded;
            webView.ScriptNotify        += ScriptNotify;
            webView.NavigationCompleted += ((sender, e) => ReadingWebViewNavigationCompleted?.Invoke(this, new ReadingWebViewNavigationCompletedEventArgs(e)));

            return(webView);
        }
Beispiel #2
0
 private void NavigationCompleted(WebView sender, WebViewNavigationCompletedEventArgs args)
 {
     ReadingWebViewNavigationCompleted?.Invoke(this, new ReadingWebViewNavigationCompletedEventArgs(args));
 }