public void Load() { if (_webView == null) { _webView = CreateWebView(); _webView.AddWebAllowedObject(_webApp.GetType().Name, _webApp); _webView.Source = _sourceUri; Content = _webView; } }
private void WebView_NavigationStarting(Windows.UI.Xaml.Controls.WebView sender, WebViewNavigationStartingEventArgs args) { //Debug.Write("args.Uri => " + args.Uri); sender.AddWebAllowedObject("JWChinese", comm); try { // if loading pages from database, then uri will be null // if pinyin view if (args.Uri == null && view.IsChinese) { busyIndicator = BusyIndicator.Start(" "); } } catch (Exception ex) { Debug.WriteLine("busyIndicator ERROR!! => " + ex.Message); } }