Example #1
0
 protected virtual void OnNavigationProgress(NavigationProgressEventArgs args)
 {
     if (NavigationProgress != null)
     {
         NavigationProgress(this, args);
     }
 }
Example #2
0
 void PART_Frame_NavigationProgress(object sender, NavigationProgressEventArgs e)
 {
     if (NavigationProgress != null)
     {
         NavigationProgress(this, e);
     }
 }
Example #3
0
        private void App_NavigationProgress(object sender, NavigationProgressEventArgs e)
        {
            TextBlock p0 = new TextBlock();
            TextBlock p1 = new TextBlock();

            p1.FontWeight = FontWeights.Bold;
            p1.Text       = "NavigationProgress";
            TextBlock p2 = new TextBlock();

            p2.Text = "Bytes Read: " + e.BytesRead.ToString();
            TextBlock p3 = new TextBlock();

            p3.Text = "MaxBytes: " + e.MaxBytes.ToString();
            TextBlock p4 = new TextBlock();

            if (e.Uri == null)
            {
                p4.Text = "URI: " + e.Uri.ToString();
            }
            else
            {
                p4.Text = "URI: None";
            }
            eventText.Children.Add(p0);
            eventText.Children.Add(p1);
            eventText.Children.Add(p2);
            eventText.Children.Add(p3);
            eventText.Children.Add(p4);
        }
Example #4
0
 protected void View_NavigationProgress(object sender, NavigationProgressEventArgs e)
 {
     if (CurrentChild != null)
     {
         CurrentChild.InvokeOnNavigatingProgress(e);
     }
 }
Example #5
0
        private void App_NavigationProgress(object sender, NavigationProgressEventArgs e)
        {
            String temp = this.tag;

            this.tag = APPLICATION;
            this.CurrentFolder("App_NavigationProgress", "lifecyclelogs");
            this.Console("App_NavigationProgress");
            this.tag = temp;
        }
Example #6
0
 private void Application_NavigationProgress(object sender, NavigationProgressEventArgs e)
 {
     System.Console.WriteLine("Application_Navigated, Uri: {0}, BytesRead: {1}", e.Uri.ToString(), e.BytesRead);
 }
 protected override void OnNavigationProgress(NavigationProgressEventArgs e)
 {
     base.OnNavigationProgress(e);
 }
Example #8
0
 protected abstract void OnNavigationProgress(NavigationProgressEventArgs e);
Example #9
0
 internal void InvokeOnNavigatingProgress(NavigationProgressEventArgs e)
 {
     OnNavigationProgress(e);
 }
        //</SnippetMainWindowNavigatedCODE>

        //<SnippetMainWindowNavigationProgressCODE>
        void NavigationService_NavigationProgress(object sender, NavigationProgressEventArgs e)
        {
            string msg = string.Format("{0} of {1} bytes retrieved.", e.BytesRead, e.MaxBytes);

            this.progressStatusBarItem.Content = msg;
        }
Example #11
0
 void PART_Frame_NavigationProgress(object sender, NavigationProgressEventArgs e)
 {
     NavigationProgress?.Invoke(this, e);
 }
Example #12
0
 void NavigationService_NavigationProgress(object sender, NavigationProgressEventArgs e)
 {
     Log("Progress: " + e.BytesRead.ToString() + " of " + e.MaxBytes.ToString() + " [" + e.Uri + "]");
 }
Example #13
0
 protected override void OnNavigationProgress(NavigationProgressEventArgs e)
 {
     logger.InfoFormat("{0:D3}.{1}", ++numberIndex, MethodBase.GetCurrentMethod().Name);
     base.OnNavigationProgress(e);
 }