private void OnContentLoading(object sender, ContentLoadingEventArgs args)
 {
     if (this._contentLoadingProgress != null)
     {
         this._contentLoadingProgress(this, args);
     }
 }
 private void BrowserControl_ContentLoading(object sender, ContentLoadingEventArgs e)
 {
     //	1.	Navigation Starting.
     //	2.	Source Changed.
     //	3.	ContentLoading.
     //	4.	HistoryChanged.
     //	5.	NavigationCompleted.
 }
Beispiel #3
0
        private void OnContentLoading(object sender, ContentLoadingEventArgs args)
        {
            string subHeader = string.Empty;

            if (args.RemainingCount >= 0)
            {
                subHeader = string.Format(CultureInfo.CurrentCulture, Resources.SyncProgressRemainingItems, new object[] { args.RemainingCount });
            }
            this.UpdateProgressBar(args.Header, subHeader, args.Caption, args.PercentComplete, 100f, false);
        }
        private void WebView2ContentLoading(object sender, ContentLoadingEventArgs e)
        {
            bool isErrorPage  = e.IsErrorPage;
            long navigationId = e.NavigationId;

            string message =
                "{ \"kind\": \"event\", \"name\": \"ContentLoading\", \"args\": {";

            message += "\"navigationId\": " + navigationId + ", ";

            message += "\"isErrorPage\": " + BoolToString(isErrorPage) + "}" +
                       WebViewPropertiesToJsonString(_eventSourceWebView2) + "}";
            PostEventMessage(message);
        }
 private void OnContentLoading(object sender, ContentLoadingEventArgs args)
 {
     if (this._contentLoadingProgress != null)
     {
         this._contentLoadingProgress(this, args);
     }
 }
Beispiel #6
0
 private void Cs_ContentLoading(object sender, ContentLoadingEventArgs e)
 {
     GameApplication.Log(LogEntryType.Info, "Loading content from " + e.PackageName + " with name \"" + e.ContentFileName + "\" type of " + e.ContentType.ToString());
 }
 private void OnContentLoading(object sender, ContentLoadingEventArgs e)
 {
     Debug.Print("NavigationId:" + e.NavigationId);
     Debug.Print("IsError:" + e.IsErrorPage);
 }
 private void OnContentLoading(object sender, ContentLoadingEventArgs args)
 {
     string subHeader = string.Empty;
     if (args.RemainingCount >= 0)
     {
         subHeader = string.Format(CultureInfo.CurrentCulture, Resources.SyncProgressRemainingItems, new object[] { args.RemainingCount });
     }
     this.UpdateProgressBar(args.Header, subHeader, args.Caption, args.PercentComplete, 100f, false);
 }
Beispiel #9
0
 private void OnWebViewContentLoading(object sender, ContentLoadingEventArgs e)
 {
     Trace.TraceInformation("OnWebViewContentLoading: " + e.NavigationId);
     //MessageBox.Show("Naviagation ID=>" + e.NavigationId);
 }