c# - show progress bar/ring in windows 8 app while a webpage is loading in webview control -


I have experience adding progress bars and progress rings when calling async functions. It has been an easy task because it progressed progressively The time and progress of the ring depends only on the ISI and iActive properties.

Now my question is, how can the progress bar / ring in the app be shown, while some webpages are loading in the webview control of Windows 8 app.

I am searching for a property or event, which tells the web page in the web view is currently in the loading position. If someone came into such property, please write it down, if you have any other solution, please tell!

Announce the first representative

  Public representative Zero Load Edit The handler (object Sender, navigation events, cargo e);   

Logically add the following code to the area on which progress bar / ring should start showing.

  progressing 1 ISActiv = true; // ProgressBar1.IsInderminate = true for Progress Ring; / / For the progress bar //   

adds this line to move control to an event that determines that Webview Control has fully loaded the webpage.

  WebView1 LoadCompleted + = New Windows.UI.Xaml.Navigation.LoadCompletedEventHandler (WebView1_LoadCompleted);   

If the webpage is fully loaded, define the following functions to operate what happens, (currently the progress bar / ring is hidden in your time at this time)

  Zero WebView1_LoadCompleted (Object Sender, Windows.UI.Xaml.Navigation.NavigationEventArgs e) // code / ProgressRing1.IsActive = false to hide progress bar; // Progress 1 for Progress Ring // for the progress bar}   

You can see this page for more context.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -